Sunday 28 May 2006 18:21 skrev Kevin O'Gorman: > if [ "x" != "x$PS1" ] ; then > SHELL_LOGIN=1 > else > # Probably scp; empty string is false > SHELL_LOGIN= > fi > > if [ -n "$SHELL_LOGIN" ] [...]
IMHO it seems kind of lame to use one shell variable to create another instead of just using the one that is already there... Also shouldn't: if [ "x" != "x$PS1" ] be equivalent to: if [ -z $PS1 ] ? -- Bo Andresen
pgpP3j2fvgiUj.pgp
Description: PGP signature