... by using shlex.quote() from standard Python library. This bug caused regular expressions with parentheses to be interpreted by shell:
/bin/sh: -c: line 1: syntax error near unexpected token `('
Also avoid using the open-coded shell_quote() function from util.py while printing shell commands in exec_cmd() because the function is rather problematic and should be eventually unimplemented.
Unfortunately, we cannot easily nest shlex.quote() while combining mock --chroot ... with su -c ... and the like because it results in totally unreadable scan.log.
... by using
shlex.quote()
from standard Python library. This bug caused regular expressions with parentheses to be interpreted by shell:Also avoid using the open-coded
shell_quote()
function fromutil.py
while printing shell commands inexec_cmd()
because the function is rather problematic and should be eventually unimplemented.Unfortunately, we cannot easily nest
shlex.quote()
while combiningmock --chroot ...
withsu -c ...
and the like because it results in totally unreadablescan.log
.Resolves: https://issues.redhat.com/browse/OSH-617