Quantcast
Channel: bash [[ = ]] behaviour - Unix & Linux Stack Exchange
Browsing index pages (2 articles)

bash [[ = ]] behaviour

man bash: [[ expression ]] [...] Expressions are composed of the primaries described below under CONDITIONAL EXPRESSIONS. Word splitting and pathname expansion are not performed on the words between...

View Article


Image may be NSFW.
Clik here to view.

Answer by don_crissti for bash [[ = ]] behaviour

= is the same as == when inside [[...]]. As per the more recent man page, under SHELL GRAMMAR > Compound Commands > [[ expression ]]: The = operator is equivalent to == and further down, under...

View Article

Browsing index pages (2 articles)


Latest Images