« first day (2035 days earlier)      last day (3 days later) » 

20:02
1
Q: Do `[[ ]]` and `(( ))` have "transitive evaluation" of variables?

YakogI am using bash, version: GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) I made a following script: #!/usr/bin/bash a=11 b=4 c=7+b if [[ a -eq c ]] then echo "ok" else echo "not ok" fi It prints "ok". When I change a to 10, it prints "not ok". So I have a simple question, ...


« first day (2035 days earlier)      last day (3 days later) »