Skip to content

Commit 343061f

Browse files
committed
fixes
1 parent 892871c commit 343061f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

features/shell.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Feature: WordPress REPL
5151
return true;
5252
"""
5353
54-
When I try `WP_CLI_CUSTOM_SHELL=/nonsense/path wp shell --basic < session`
54+
When I try `MSYS_NO_PATHCONV=1 WP_CLI_CUSTOM_SHELL=/nonsense/path wp shell --basic < session`
5555
Then STDOUT should be empty
5656
And STDERR should contain:
5757
"""

src/WP_CLI/Shell/REPL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private function prompt() {
144144
// @phpstan-ignore booleanNot.alwaysTrue
145145
$prompt = ( ! $done && false !== $full_line ) ? '--> ' : $this->prompt;
146146

147-
if ( ! self::is_tty() ) {
147+
if ( \WP_CLI\Utils\is_windows() && ! self::is_tty() ) {
148148
if ( getenv( 'WP_CLI_CUSTOM_SHELL' ) ) {
149149
self::create_prompt_cmd( $prompt, $this->history_file );
150150
}

0 commit comments

Comments
 (0)