Sujet : Re: What does @{FOOBAR@a} mean? (bash)
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.shellDate : 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.