3 $description = "Test the behaviour of the .ONESHELL target.";
9 if ($port_type ne 'W32') {
10 # Some shells (*shakes fist at Solaris*) cannot handle multiple flags in
12 my $t = `$sh_name -e -c true 2>/dev/null`;
13 my $multi_ok = $? == 0;
22 [ 0"$$a" -eq "$$$$" ] || echo fail
25 [ 0"$a" -eq "$$" ] || echo fail
28 # Simple but use multi-word SHELLFLAGS
36 [ 0"$$a" -eq "$$$$" ] || echo fail
39 [ 0"$a" -eq "$$" ] || echo fail
43 # Again, but this time with inner prefix chars
49 @-+ [ 0"$$a" -eq "$$$$" ] || echo fail
52 [ 0"$a" -eq "$$" ] || echo fail
55 # This time with outer prefix chars
61 [ 0"$$a" -eq "$$$$" ] || echo fail
66 # This time with outer and inner prefix chars
72 -@ +[ 0"$$a" -eq "$$$$" ] || echo fail
77 # Now try using a different interpreter
78 # This doesn't work on Windows right now
79 if ($port_type ne 'W32') {
89 >print "a = $$a, y = (@y)\n";
91 '', "a = 12, y = (a b c)\n");