diff --git a/sdn.cpp b/sdn.cpp index bf12889..13e2f0e 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -114,7 +114,7 @@ fun needs_shell_quoting (const string &v) -> bool { for (auto c : v) if (strchr ("|&;<>()$`\\\"' \t\n" "*?[#˜=%" "!", c)) return true; - return false; + return v.empty (); } fun shell_escape (const string &v) -> string {