Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15945
| From | pepa65 <solusos@passchier.net> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: test -v for array does not work as documented |
| Date | 2020-02-21 15:31 +0700 |
| Message-ID | <mailman.1346.1582273902.2412.bug-bash@gnu.org> (permalink) |
| References | <mailman.4206.1582208094.2410.bug-bash@gnu.org> <w6gh7zlz4de.fsf@kph.uni-mainz.de> <a07dd152-b50a-a77b-13c1-fc559b053fdd@case.edu> <25b3fccb-151b-0712-76f1-5b19ffcce1d9@passchier.net> |
On 21/02/2020 02.37, Chet Ramey wrote: > It's unset because it doesn't have a value, but it retains the `local' > attribute so it stays local if subsequently assigned one. Is there any reason the local attribute cannot be unset? If it would be possible then the "declare/typeset -p" would return 1 when the variable doesn't exist. By the way, it seems that `local -p var` doesn't work like 'declare -p var` even though `help local` suggests it should. Peter
Back to gnu.bash.bug | Previous | Next | Find similar
Re: test -v for array does not work as documented pepa65 <solusos@passchier.net> - 2020-02-21 15:31 +0700
csiph-web