| | @@ -35,8 +35,9 @@ |
| 35 | 35 | if [ -f $dir/$name.args ]; then |
| 36 | 36 | while IFS= read -r a; do set -- "$@" "$a"; done < $dir/$name.args |
| 37 | 37 | fi |
| 38 | | - # in $(...), so that what the shell says of a signal goes nowhere |
| 39 | | - status=$( { $out/$name "$@" > $out/$name.out 2>$out/$name.err; echo $?; } 2>/dev/null ) |
| 38 | + # in $(...), so that what the shell says of a signal goes nowhere; |
| 39 | + # in ( ), since dash says it with the command's 2> still in place |
| 40 | + status=$( { ( exec $out/$name "$@" ) > $out/$name.out 2>$out/$name.err; echo $?; } 2>/dev/null ) |
| 40 | 41 | want=0 |
| 41 | 42 | [ -f $dir/$name.status ] && want=$(cat $dir/$name.status) |
| 42 | 43 | if ! cmp -s $out/$name.out $dir/$name.expect; then |