mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-04 20:36:20 -04:00
revert channges to quote argument
This commit is contained in:
parent
5a8adeb758
commit
b344ca78ad
@ -178,9 +178,9 @@ namespace util
|
|||||||
// need to do so --- hopefully avoid problems if programs won't
|
// need to do so --- hopefully avoid problems if programs won't
|
||||||
// parse quotes properly
|
// parse quotes properly
|
||||||
//
|
//
|
||||||
bool containsCharThatNeedsQuoting = argument.find_first_of(L" \t\n\v\"") != argument.npos;
|
|
||||||
bool containsCharThatNeedsNoQuoting = argument.find_first_of(L"/") != argument.npos;
|
if (force == false && argument.empty() == false &&
|
||||||
if (!force && !argument.empty() && (!containsCharThatNeedsQuoting || containsCharThatNeedsNoQuoting)) {
|
argument.find_first_of(L" \t\n\v\"") == argument.npos) {
|
||||||
command_line.append(argument);
|
command_line.append(argument);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user