We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9be1b9a commit d27880fCopy full SHA for d27880f
1 file changed
src/WP_CLI/Shell/REPL.php
@@ -125,7 +125,7 @@ private static function create_prompt_cmd( $prompt, $history_path ) {
125
} elseif ( is_file( '/bin/bash' ) && is_readable( '/bin/bash' ) ) {
126
// Prefer /bin/bash when available since we use bash-specific commands.
127
$shell_binary = '/bin/bash';
128
- } elseif ( getenv( 'SHELL' ) && self::is_bash_shell( getenv( 'SHELL' ) ) ) {
+ } elseif ( getenv( 'SHELL' ) && self::is_bash_shell( (string) getenv( 'SHELL' ) ) ) {
129
// Only use SHELL as fallback if it's bash (we use bash-specific commands).
130
$shell_binary = (string) getenv( 'SHELL' );
131
} else {
0 commit comments