Ron Yorston | ea7d2f6 | 2017-01-03 11:18:23 +0100 | [diff] [blame] | 1 | # syntax error should return status 2 |
2 | cat >test.sh <<EOF | ||||
3 | ) | ||||
4 | EOF | ||||
5 | chmod +x test.sh | ||||
6 | $THIS_SH ./test.sh | ||||
7 | echo Done:$? | ||||
8 | rm -f test.sh | ||||
9 | |||||
10 | # redirection error with special builtin should return status 1 | ||||
11 | (eval cat <does_not_exist) | ||||
12 | echo Done:$? |