config/uname
Ben Elliston 6e52e947e4 * 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 11:45:08 +00:00

10 lines
236 B
Bash
Executable File

#!/bin/sh
# uname(1) simulator, inspired by Pavel Roskin.
[ $# -ne 1 ] && exec sh $0 -s
[ $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"