* uname: Similar to the last change, remove all exit commands and

let the script exit with the exit code of the last command.
This commit is contained in:
Ben Elliston 2005-05-12 11:45:08 +00:00
parent 047db621af
commit 6e52e947e4
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-05-12 Ben Elliston <bje@gnu.org>
* uname: Similar to the last change, remove all exit commands and
let the script exit with the exit code of the last command.
2005-05-12 Paul Eggert <eggert@CS.UCLA.EDU>
Explanation for this subtle change:

8
uname
View File

@ -2,8 +2,8 @@
# uname(1) simulator, inspired by Pavel Roskin.
[ $# -ne 1 ] && exec sh $0 -s
[ $1 = -m ] && echo 4400 && exit 0
[ $1 = -r ] && echo 4.0 && exit 0
[ $1 = -s ] && echo iainfo2 && exit 0
[ $1 = -v ] && echo 3.0 && exit 0
[ $1 = -m ] && echo 4400
[ $1 = -r ] && echo 4.0
[ $1 = -s ] && echo iainfo2
[ $1 = -v ] && echo 3.0
[ $1 = -p ] && echo "Pentium III(TM)-ISA/PCI"