From 6e52e947e47858f9bd47c5277cac61ecc22e7a83 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Thu, 12 May 2005 11:45:08 +0000 Subject: [PATCH] * uname: Similar to the last change, remove all exit commands and let the script exit with the exit code of the last command. --- ChangeLog | 5 +++++ uname | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index cf73974..2d73e8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-12 Ben Elliston + + * 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 Explanation for this subtle change: diff --git a/uname b/uname index 53d87f8..4d2b55d 100755 --- a/uname +++ b/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"