[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using unset to destroy array elements doesn't work with 'nullglob'
Re: Using unset to destroy array elements doesn't work with 'nullglob' set
Fri, 5 Jun 2009 18:08:29 +0200
On Fri, Jun 5, 2009 at 6:05 PM, Greg Wooledge <address@hidden> wrote:
> On Fri, Jun 05, 2009 at 08:35:15AM -0700, Francis Moreau wrote:
>> unset foo
> This is a problem in your script, unfortunately. Even without nullglob,
> this can still fail if you happen to have a file named foo0 in your
> current working directory, which would be matched as a glob.
> For total safety, you must quote it:
> unset 'foo'
oh yes you're right !