File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,7 @@ class _ProcessImpl extends NativeFieldWrapperClass1 implements Process {
92
92
}
93
93
_arguments[i] = arguments[i];
94
94
if (Platform .operatingSystem == 'windows' ) {
95
- _arguments[i] = _windowsArgumentEscape (_arguments[i],
96
- shellEscape: runInShell);
95
+ _arguments[i] = _windowsArgumentEscape (_arguments[i]);
97
96
}
98
97
}
99
98
@@ -158,12 +157,11 @@ class _ProcessImpl extends NativeFieldWrapperClass1 implements Process {
158
157
return shellArguments;
159
158
}
160
159
161
- String _windowsArgumentEscape (String argument, { bool shellEscape : false } ) {
160
+ String _windowsArgumentEscape (String argument) {
162
161
var result = argument;
163
162
if (argument.contains ('\t ' ) ||
164
163
argument.contains (' ' ) ||
165
- // TODO(ajohnsen): Remove shellEscape.
166
- (shellEscape && argument.contains ('"' ))) {
164
+ argument.contains ('"' )) {
167
165
// Produce something that the C runtime on Windows will parse
168
166
// back as this string.
169
167
You can’t perform that action at this time.
0 commit comments