Skip to content

Commit ff7d45d

Browse files
1 parent 8984694 commit ff7d45d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

runtime/bin/process_patch.dart

+3-5
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ class _ProcessImpl extends NativeFieldWrapperClass1 implements Process {
9292
}
9393
_arguments[i] = arguments[i];
9494
if (Platform.operatingSystem == 'windows') {
95-
_arguments[i] = _windowsArgumentEscape(_arguments[i],
96-
shellEscape: runInShell);
95+
_arguments[i] = _windowsArgumentEscape(_arguments[i]);
9796
}
9897
}
9998

@@ -158,12 +157,11 @@ class _ProcessImpl extends NativeFieldWrapperClass1 implements Process {
158157
return shellArguments;
159158
}
160159

161-
String _windowsArgumentEscape(String argument, { bool shellEscape: false }) {
160+
String _windowsArgumentEscape(String argument) {
162161
var result = argument;
163162
if (argument.contains('\t') ||
164163
argument.contains(' ') ||
165-
// TODO(ajohnsen): Remove shellEscape.
166-
(shellEscape && argument.contains('"'))) {
164+
argument.contains('"')) {
167165
// Produce something that the C runtime on Windows will parse
168166
// back as this string.
169167

0 commit comments

Comments
 (0)