Linda Walsh <b...@tlinx.org> writes:

>   Or another disparity:  C.
> t='one two three'
> c='one two three'
> 1) if [[ $t == $a ]]; then echo 'Matches'; fi
> 2) if [[ $t == "$a" ]]; then echo 'Matches'; fi
> So, the expressions match whether or not $a is in double quotes or not
> (single quotes would not match, as the $a would be taken literally).

Set a='one * three' and try again.

> Quoting should not disable RE matching.

Yes it should.  Just like quoting disables glob matching.  There must be
a way to remove the special meaning of a character.

> It is NOT the same as double quotes not allowing *file glob
> expansion*.

Globbing is not only about expansion, it is also about matching.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to