[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unset FOO
From: |
Peter Seebach |
Subject: |
unset FOO |
Date: |
Wed, 17 Sep 2008 19:35:57 -0500 |
In regards to worries about "unset FOO" not working if FOO is not set:
${FOO+unset FOO}
Is this crazy or clever? It works in Solaris sh. (I know, in most cases,
it's sufficient to just empty the variable, but sometimes it'd be nice to
be able to distinguish between empty and unset.)
-s
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- unset FOO,
Peter Seebach <=