Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13209344
D10743.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
654 B
Referenced Files
None
Subscribers
None
D10743.diff
View Options
diff --git a/src/console/format.php b/src/console/format.php
--- a/src/console/format.php
+++ b/src/console/format.php
@@ -37,7 +37,9 @@
throw $ex;
}
- $use_history = true;
+ // `escapeshellarg` makes double quotes in the command below disappear on
+ // Windows, which breaks prompts when using history. See T6348
+ $use_history = !phutil_is_windows();
if ($history == '') {
$use_history = false;
} else {
@@ -45,8 +47,6 @@
list($err) = exec_manual('bash -c %s', 'true');
if ($err) {
$use_history = false;
- } else if (phutil_is_windows()) {
- $history = str_replace('\\', '/', $history);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 17, 11:33 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6291042
Default Alt Text
D10743.diff (654 B)
Attached To
Mode
D10743: Remove history support for console prompts on Windows
Attached
Detach File
Event Timeline
Log In to Comment