'-w' in c_command will check for it as a substring, which will also match '-wd', etc. So match it with quotes. This won't give us false positives, but might give us false negatives in case the argument is not quoted, but that's better behaviour for a test. The alternative is to split the string command, but the command does not necessarily obey shell quoting rules, so we cannot reliably use shlex.split().pull/1253/head
parent
54697b4130
commit
c8bb7f2217
1 changed files with 6 additions and 6 deletions
Loading…
Reference in new issue