Message-ID: <lrvfnh315c.fsf@caliper.activestate.com>
p4raw-id: //depot/metaconfig@22119
?X: Uses case instead of $test so it can be put before $test is defined.
?X: Don't redirect to a file because on Ultrix (under script?) logname
?X: outputs a blank line first. This method will apparently work.
-cf_by=`(logname) 2>/dev/null`
case "$cf_by" in
"")
- cf_by=`(whoami) 2>/dev/null`
+ cf_by=`(logname) 2>/dev/null`
case "$cf_by" in
- "") cf_by=unknown ;;
+ "")
+ cf_by=`(whoami) 2>/dev/null`
+ case "$cf_by" in
+ "") cf_by=unknown ;;
+ esac ;;
esac ;;
esac