3 $description = "Test the behaviour of the .ONESHELL target.";
7 # Some shells (*shakes fist at Solaris*) cannot handle multiple flags in
9 my $t = `/bin/sh -e -c true 2>/dev/null`;
10 my $multi_ok = $? == 0;
18 [ 0"$$a" -eq "$$$$" ] || echo fail
21 [ 0"$a" -eq "$$" ] || echo fail
24 # Simple but use multi-word SHELLFLAGS
32 [ 0"$$a" -eq "$$$$" ] || echo fail
35 [ 0"$a" -eq "$$" ] || echo fail
39 # Again, but this time with inner prefix chars
45 @-+ [ 0"$$a" -eq "$$$$" ] || echo fail
48 [ 0"$a" -eq "$$" ] || echo fail
51 # This time with outer prefix chars
57 [ 0"$$a" -eq "$$$$" ] || echo fail
62 # This time with outer and inner prefix chars
68 -@ +[ 0"$$a" -eq "$$$$" ] || echo fail
73 # Now try using a different interpreter
84 >print "a = $$a, y = (@y)\n";
86 '', "a = 12, y = (a b c)\n");