[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unsetting non existent variables

From: Chet Ramey
Subject: Re: unsetting non existent variables
Date: Tue, 1 Jun 2004 12:28:30 -0400

> $ 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.

I changed the man page a while back to remove the case where
the name does not exist.

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]