in reply to Re^2: Back-ticks and bash
in thread Back-ticks and bash
if [ "$x" = abc ]
i.e. you need to quote the variables, while with `[[` you don't have to, as the shell processes the parameters before expansion:
if [[ $x = abc ]]
Also, `[[` introduces pattern matching [[ $x = ab* ]] and `=~` you might now from Perl.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|