mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-04 12:26:19 -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
|
||||
// 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 && !argument.empty() && (!containsCharThatNeedsQuoting || containsCharThatNeedsNoQuoting)) {
|
||||
|
||||
if (force == false && argument.empty() == false &&
|
||||
argument.find_first_of(L" \t\n\v\"") == argument.npos) {
|
||||
command_line.append(argument);
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user