| ▲ | PhilipRoman 6 hours ago | |
[[...]] is non-portable and has an extremely quirky corner case with variable expansion in arithmetic contexts, what's not to love? | ||
| ▲ | account42 5 hours ago | parent | next [-] | |
It also does wildcards though, with POSIX you'll need a case statement for that. | ||
| ▲ | ndsipa_pomu 5 hours ago | parent | prev [-] | |
I'm intrigued - any info on that? I personally use ((...)) for arithmetic tests and [[...]] for all other tests as I just target new versions of BASH and don't care much about POSIX compatibility. | ||