From b344ca78ad3127849b0aeacf72350e55648f7d3d Mon Sep 17 00:00:00 2001 From: xoviat Date: Sun, 20 Aug 2023 19:53:55 -0500 Subject: [PATCH] revert channges to quote argument --- subprocess.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprocess.hpp b/subprocess.hpp index 6f91090..cc1933e 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -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 {