[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unset and pathname expansion
From: |
Marc Zonzon |
Subject: |
unset and pathname expansion |
Date: |
Wed, 23 Mar 2005 19:32:32 +0100 |
User-agent: |
Mutt/1.4.1i |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- unset and pathname expansion,
Marc Zonzon <=