bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unset does not act as expected on namerefs


From: Shawn Wilson
Subject: Re: unset does not act as expected on namerefs
Date: Mon, 1 Jun 2015 21:59:51 -0400
User-agent: Mutt/1.5.22+19 (8f62001989cc) (2013-10-16)

Top posting as I'm kinda going out of band of the thread here;

Having read the discussion, I guess the issue I brought up really
isn't a "bug" (though Greg's points probably should be considered
bugs). I'll preface this by saying I'm not an expert in bash by any
means. However, most languages have a garbage collection facility
which cleans up anonymous refs with nothing pointing to it and most
high level languages make it easier to make a soft or symbolic
reference than making hard references. But also, when you
'undef'/delete()/whatever the variable or the pointer, handle both
and avoid this issue. While I do like the idea of pointers for bash
variables, I would much prefer being able to create references.
Also, whatever happens, I think there should also be a way to test
for variable type (either another test flag or something like perl's
ref() ).

Feel free to flame me and say 'go away' if I'm off the mark with how
this should be handled :)

Attachment: shawn.wilson@korelogic.com_2016-12-16.asc
Description: Text document

Attachment: pgpyCXIMax04r.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]