Re: About the "nameref" feature in bash...

Liste des GroupesRevenir à cu shell 
Sujet : Re: About the "nameref" feature in bash...
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.shell
Date : 09. Dec 2024, 13:38:39
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <vj6ocf$1frrq$2@news.xmission.com>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <vj4c02$3rrc3$1@dont-email.me>,
Janis Papanagnou  <janis_papanagnou+ng@hotmail.com> wrote:
On 08.12.2024 15:41, Kenny McCormack wrote:
In article <vj48k5$3r1bq$1@dont-email.me>,
Janis Papanagnou  <janis_papanagnou+ng@hotmail.com> wrote:
On 08.12.2024 13:51, Kenny McCormack wrote:
Bash has a "nameref" attribute on variables,
>
Is that a newer feature of bash? (My version doesn't support -n with
'local' or with 'declare'.) My response is based on the ksh feature.
The underlying ideas of the feature might be reflected in both shells
in similar ways.
 
I think I read somewhere that it came in at bash 4.3 (c. 2014/2015) - which
is rather old now.  So, I wouldn't call it "new".
>
Yeah - "newer" is a very subjective and context specific term.

Yup.

It's my [deliberately frozen] standard box I use regularly that
is still running bash 2.4; so some, erm.., "newer" features of
bash I cannot test [on that system] (without manual changes).
I see a downloaded "bash 5.0" package lying around on the file
system (not installed), but that's it. :-)

I'm a fan of "retro" software, too, and I'm skeptical of the sort of people
you often see who act as if if you aren't running the absolute latest and
greatest, then your input is useless.

Most of my systems are running a pretty old spin of Debian and the bash
on these systems is of the 4.3 vintage.

OTOH, I am kind of a fanboy of bash and I do follow the developments there.
I usually self-compile the latest version for some subset of my systems.  I
just d/l'd the 5.3.alpha tarball (which is from April 2024).  Haven't
gotten around to compiling it yet.  I'm wondering "how alpha is alpha?"

--
"Remember when teachers, public employees, Planned Parenthood, NPR and PBS
crashed the stock market, wiped out half of our 401Ks, took trillions in
TARP money, spilled oil in the Gulf of Mexico, gave themselves billions in
bonuses, and paid no taxes? Yeah, me neither."

Date Sujet#  Auteur
8 Dec 24 * About the "nameref" feature in bash...7Kenny McCormack
8 Dec 24 `* Re: About the "nameref" feature in bash...6Janis Papanagnou
8 Dec 24  +* Re: About the "nameref" feature in bash...4Kenny McCormack
8 Dec 24  i`* Re: About the "nameref" feature in bash...3Janis Papanagnou
9 Dec 24  i `* Re: About the "nameref" feature in bash...2Kenny McCormack
9 Dec 24  i  `- Re: About the "nameref" feature in bash...1Janis Papanagnou
9 Dec 24  `- Re: About the "nameref" feature in bash...1Kenny McCormack

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal