mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-30 11:06:36 +12:00
* Handle no options -- re-invoke with `-s'.
This commit is contained in:
parent
ac19e7f7fe
commit
e7a9e874df
1
uname
1
uname
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# uname(1) simulator, inspired by Pavel Roskin.
|
# uname(1) simulator, inspired by Pavel Roskin.
|
||||||
|
|
||||||
|
[ $# -ne 1 ] && exec sh $0 -s
|
||||||
[ $1 = -m ] && echo ia64 && exit 0
|
[ $1 = -m ] && echo ia64 && exit 0
|
||||||
[ $1 = -r ] && echo B.11.20 && exit 0
|
[ $1 = -r ] && echo B.11.20 && exit 0
|
||||||
[ $1 = -s ] && echo HP-UX && exit 0
|
[ $1 = -s ] && echo HP-UX && exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user