Skip to content

Commit 4cbcd04

Browse files
swissspidyCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 777b7c4 commit 4cbcd04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/WP_CLI/Shell/REPL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private static function create_prompt_cmd( $prompt, $history_path ) {
156156
. '[ $? -eq 0 ] || exit; '
157157
. 'history -s -- "$LINE"; '
158158
. "history -w {$history_path}; "
159-
. 'echo $LINE; ';
159+
. 'printf \'%s\n\' "$LINE"; ';
160160
}
161161

162162
return "{$shell_binary} -c " . escapeshellarg( $cmd );

0 commit comments

Comments
 (0)