revert channges to quote argument

This commit is contained in:
xoviat 2023-08-20 19:53:55 -05:00
parent 5a8adeb758
commit b344ca78ad

View File

@ -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 {