Page MenuHomePhabricator

D10743.diff
No OneTemporary

D10743.diff

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

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)

Event Timeline