bash script and the , operator
I'm trying to understand a portion of the article posted at the below link.
http://www.tldp.org/LDP/abs/html/special-chars.html Code:
let "t2 = ((a = 9, 15 / 3))" # Set "a" and calculate "t2". Code:
let "t2 = ((10*25, 15 / 3))" |
This is what I saw when I tried your code:
idaho@pikachu:~$ let "t2 = ((10*25, 15 / 3))";echo $t2 5 As you surmised, the 10*25 was calculated and discarded. |
All times are GMT -5. The time now is 04:13 AM. |