bug-bash
[Top][All Lists]
Advanced

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

Curious case of arithmetic expansion


From: Florian Mayer
Subject: Curious case of arithmetic expansion
Date: Sun, 23 Apr 2017 12:12:08 +0200

Consider

$ foo=bar; bar=moo; moo=123
$ echo $foo $bar $moo
=> bar moo 123
$ echo $((foo))
=> 123 
$ echo $foo $bar $moo
=> bar moo 123
$ # so far so good but
$ ((foo++))
$ echo $foo $bar $moo
=> 123 moo 123

Now my chain of indirections is broken… 


reply via email to

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