blob: 79a6ebd50e58b6976816f980f644b596837a7041
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:$? |
13 |