On Fri, Jun 05, 2009 at 08:35:15AM -0700, Francis Moreau wrote: > unset foo[0]
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[0]'