mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-28 10:06:37 +12:00
* 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:
parent
047db621af
commit
6e52e947e4
@ -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
8
uname
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user