We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 892871c commit 343061fCopy full SHA for 343061f
2 files changed
features/shell.feature
@@ -51,7 +51,7 @@ Feature: WordPress REPL
51
return true;
52
"""
53
54
- When I try `WP_CLI_CUSTOM_SHELL=/nonsense/path wp shell --basic < session`
+ When I try `MSYS_NO_PATHCONV=1 WP_CLI_CUSTOM_SHELL=/nonsense/path wp shell --basic < session`
55
Then STDOUT should be empty
56
And STDERR should contain:
57
src/WP_CLI/Shell/REPL.php
@@ -144,7 +144,7 @@ private function prompt() {
144
// @phpstan-ignore booleanNot.alwaysTrue
145
$prompt = ( ! $done && false !== $full_line ) ? '--> ' : $this->prompt;
146
147
- if ( ! self::is_tty() ) {
+ if ( \WP_CLI\Utils\is_windows() && ! self::is_tty() ) {
148
if ( getenv( 'WP_CLI_CUSTOM_SHELL' ) ) {
149
self::create_prompt_cmd( $prompt, $this->history_file );
150
}
0 commit comments