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: Tue, 2 Jun 2015 11:16:27 -0400
User-agent: Mutt/1.5.22+19 (8f62001989cc) (2013-10-16)

On +2015/06/02 08:31:57, Greg Wooledge wrote:

> 
> > 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() ).
> 
> Bash is not a strongly typed language.  You've got strings, and indexed
> arrays, and associative arrays.  That's all.  (There's declare -i, but
> no sane person USES that, so we can ignore it.)
> 
> You might be trying to do things that Bash is simply not designed to do.
> It's a shell.

I would argue that a nameref is a variable type.

Attachment: pgpFebGAiuJ4K.pgp
Description: PGP signature


reply via email to

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