diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-02-12 21:03:03 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2014-02-12 21:03:03 +0100 |
commit | 99f476f69953f003be13df3f8f1bb19536826212 (patch) | |
tree | 2893149c4dfad405c9329215860a79f60849d5d2 /test | |
parent | 93830e666d6c1f71668ac80245e5c1d8785a6a88 (diff) | |
download | quilt-99f476f69953f003be13df3f8f1bb19536826212.tar.gz |
test/run: Fix the condition for using /bin/sh
* Command lines containing "&" need /bin/sh.
* "*" and "?" need not be escaped inside brackets in regular expressions.
Diffstat (limited to 'test')
-rwxr-xr-x | test/run | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -119,7 +119,7 @@ sub exec_test($$) { my ($raw_prog, $in) = @_; local (*IN, *IN_DUP, *IN2, *OUT_DUP, *OUT, *OUT2); my $prog = [ shellwords($raw_prog) ]; - my $needs_shell = ($raw_prog =~ /[][|<>;`\$\*\?]/); + my $needs_shell = ($raw_prog =~ /[][|&<>;`\$*?]/); if ($prog->[0] eq "umask") { umask oct $prog->[1]; |