Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #13760 > unrolled thread

Re: Unset array doesn't work

Started byChet Ramey <chet.ramey@case.edu>
First post2018-02-27 11:23 -0500
Last post2018-02-27 11:23 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Unset array doesn't work Chet Ramey <chet.ramey@case.edu> - 2018-02-27 11:23 -0500

#13760 — Re: Unset array doesn't work

FromChet Ramey <chet.ramey@case.edu>
Date2018-02-27 11:23 -0500
SubjectRe: Unset array doesn't work
Message-ID<mailman.9810.1519748614.27995.bug-bash@gnu.org>
On 2/26/18 11:34 AM, Robert Elz wrote:

> I believe that most shells that implement local (which is most shells) 
> implement unset of a local as meaning the local var becomes unset,
> not that it vanishes and the global reappears.

That was the objection: that unset in a function unset the local instance
of the variable, and left the global instance in place.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web