summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-02-12 21:03:03 +0100
committerJean Delvare <jdelvare@suse.de>2014-02-12 21:03:03 +0100
commit99f476f69953f003be13df3f8f1bb19536826212 (patch)
tree2893149c4dfad405c9329215860a79f60849d5d2 /test
parent93830e666d6c1f71668ac80245e5c1d8785a6a88 (diff)
downloadquilt-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-xtest/run2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run b/test/run
index 3e84b0c..fd1fcc2 100755
--- a/test/run
+++ b/test/run
@@ -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];