2 ms·
As much as I love ZSH in my daily life, in sripting I HATE it for not having the "==" operator! >:((
by IYasha 4y ago
As much as I love ZSH in my daily life, in sripting I HATE it for not having the "==" operator! >:((
- Beltalowda 4y agoIt works inside [[ ]], just not in [ ]. =name will expand to the entry in your PATH. e.g. =ls expands to /usr/bin/ls. So == expands to an executable named =, or rather, it tries to as you probably don't have = in your PATH. [[ ]] disables expansions (e.g. [[ * = * ]] will work too) so it's not an issue there.