-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Eric Blake on 10/14/2008 10:21 AM: > But why waste the time going through a temporary variable, when you can use: > > test ${foo+set} = set && unset foo
To avoid syntax errors from test, this needs better quoting, as in either: test x${foo+set} = xset && unset foo test "${foo+set}" = set && unset foo - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj15wIACgkQ84KuGfSFAYDQ/gCgg/ge3/olTe5Lz8KP8MnFUMpW EXsAoMu7XqezJR7pAJ00pAPT0cyyfiHJ =g+ID -----END PGP SIGNATURE-----