It seems that pathname expansion combined with array syntax is quite
tricky. And the bash manual seems to encourage an error prone syntax.
I would propose to replace the sentence (from bash(1) GNU bash, version
3.00.14):
> The unset builtin is used to  destroy  arrays.   unset  name[subscript]
> destroys  the array element at index subscript. 
by:
unset  name[subscript] has an unpredictable result depending on the
existence of a file named: names or nameu or nameb ... the settings of options 
nullglob , failglob , extglob , and the environment variable GLOBIGNORE;
but unset "name[subscript]" destroys  the array element at index subscript.

Marc


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to