shelltest: detect the ". of empty script" shell problem.
This commit is contained in:
parent
1ed168e79e
commit
32f584cb1c
2 changed files with 10 additions and 0 deletions
|
|
@ -280,5 +280,13 @@ lt
|
|||
[ "$x" = "1" ] || fail 112
|
||||
[ "$y$z" = "67" ] || fail 113
|
||||
|
||||
# reported by Tim Allen:
|
||||
# some shells don't return 0 from an empty '.' script; they return the
|
||||
# previous command's exit code instead.
|
||||
# See:
|
||||
# http://pubs.opengroup.org/onlinepubs/009695399/utilities/dot.html
|
||||
# http://austingroupbugs.net/view.php?id=114
|
||||
false
|
||||
. ./nothing.od || warn 114
|
||||
|
||||
exit $FAIL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue