Re: What does @{FOOBAR@a} mean? (bash)

Liste des GroupesRevenir à cu shell 
Sujet : Re: What does @{FOOBAR@a} mean? (bash)
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.shell
Date : 14. Apr 2024, 02:02:38
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <uvf9ve$3oki0$1@news.xmission.com>
References : 1 2
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <uvf043$33fov$1@dont-email.me>,
Lew Pitcher  <lew.pitcher@digitalfreehold.ca> wrote:
On Sat, 13 Apr 2024 20:35:27 +0000, Kenny McCormack wrote:
>
Observe:
 
$ unset FOOBAR
$ echo ${FOOBAR@a}
 
$ FOOBAR=
$ echo ${FOOBAR@a}
 
$ export FOOBAR
$ echo ${FOOBAR@a}
x
$
 
It seems that it prints "x" iff the variable has been exported.
This works with any variable - the output is always "x" (iff it is exported).
 
I can find no mention of this feature in "man bash".
[snip]
What is going on?
>
${parameter@operator}

Wow.  Weird.  Thanks.

I wonder what the "flag values" are that you get with @a (my "x")...

--
Just like Donald Trump today, Jesus Christ had a Messiah complex.

And, in fact, the similarities between the two figures are quite striking.
For example, both have a ragtag band of followers, whose faith cannot be shaken.

Date Sujet#  Auteur
13 Apr 24 * What does @{FOOBAR@a} mean? (bash)10Kenny McCormack
13 Apr 24 +- Re: What does @{FOOBAR@a} mean? (bash)1John-Paul Stewart
13 Apr 24 +* Re: What does @{FOOBAR@a} mean? (bash)2Helmut Waitzmann
13 Apr 24 i`- Re: What does @{FOOBAR@a} mean? (bash)1Kenny McCormack
14 Apr 24 `* Re: What does @{FOOBAR@a} mean? (bash)6Lew Pitcher
14 Apr 24  +* Re: What does @{FOOBAR@a} mean? (bash)3Kenny McCormack
14 Apr 24  i`* Re: What does @{FOOBAR@a} mean? (bash)2Kenny McCormack
14 Apr 24  i `- Re: What does @{FOOBAR@a} mean? (bash)1vallor
14 Apr 24  `* Re: What does @{FOOBAR@a} mean? (bash)2Popping Mad
14 Apr 24   `- Re: What does @{FOOBAR@a} mean? (bash)1Lew Pitcher

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal