help-bash
[Top][All Lists]
Advanced

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

Why does this do what it does: $((name)) ?


From: Stan Marsh
Subject: Why does this do what it does: $((name)) ?
Date: Wed, 02 Jul 2025 06:44:17 -0600

Observe:

$ unset name zebra
$ echo $((name))
0
$ name=zebra
$ echo $((name))
0
$ zebra=99
$ echo $((name))
99
$

What is the explanation for the third result?  Is it documented?

=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.

Note that they always end up in my Spam file anyway, so it is annoying to have 
to
periodically clean that out.



reply via email to

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