Skip to content

Commit 9842fd6

Browse files
committed
Use curly braces on substitutions
1 parent 68154b6 commit 9842fd6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/WP_CLI/REPL.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ private static function create_prompt_cmd( $prompt, $history_path ) {
126126
$shell_binary = escapeshellarg( $shell_binary );
127127

128128
$cmd = 'set -f; '
129-
. "history -r $history_path; "
129+
. "history -r {$history_path}; "
130130
. 'LINE=""; '
131-
. "read -re -p $prompt LINE; "
131+
. "read -re -p {$prompt} LINE; "
132132
. '[ $? -eq 0 ] || exit; '
133133
. 'history -s "$LINE"; '
134-
. "history -w $history_path; "
134+
. "history -w {$history_path}; "
135135
. 'echo $LINE; ';
136136

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

0 commit comments

Comments
 (0)