[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unsetting non existent variables
From: |
Dan Jacobson |
Subject: |
unsetting non existent variables |
Date: |
Sun, 30 May 2004 12:32:15 +0800 |
$ man bash
unset [-fv] [name ...]
... The exit status is true unless a name does not exist or is
readonly.
$ set|grep mmm
$ unset mmm; echo $?
0
mmm didn't exist, but the exit status was still true.
Actually, I'd rather you change the man page so that unsetting non
existent variables is not an error, else many of my bash -e scripts
will fail.
BTW,
$ help unset
doesn't mention exit status.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- unsetting non existent variables,
Dan Jacobson <=