don't modify the exit status in fn sigexit; if we leave it alone the correct status will come through. if we modify it, lookman in rc always prints that ugly status message. Notes: Sat May 10 14:43:30 EDT 2008 geoff not quite right; notes should cause bad exit status. applied a variant. Reference: /n/sources/patch/applied/lookmanexit Date: Fri May 9 17:38:16 CES 2008 Signed-off-by: quanstro@quanstro.net Reviewed-by: geoff --- /rc/bin/lookman Fri May 9 17:37:46 2008 +++ /rc/bin/lookman Fri May 9 17:37:45 2008 @@ -6,12 +6,11 @@ t2=/tmp/look2.$pid fn sigexit sigint sighup sigterm{ rm -f $t1 $t2 - exit 1 } *=`{echo $*|tr A-Z a-z|tr -dc 'a-z0-9_. \012'} # fold case, delete funny chars if(~ $#* 0){ echo Usage: lookman key ... >/fd/2 - exit 1 + exit usage } look $1 $index|sed 's/.* //'|sort -u >$t1 shift @@ -26,5 +25,4 @@ } sort $t1 | sed 's;/sys/man/;; s;(.*)/(.*);man \1 \2 # \2(\1);' -rm -f $t1 $t2 -exit 0 +exit ''