Carsten Lohrke wrote:
Current bash.xml accepts (a), but not (b). The single qoute is
the start of string highlight. It's also not just the backtick
block, but the backtick block inside of a double quote string
block - and vice versa.
x="`echo \"'\\\"\"`" is valid
My bash highlighter thinks this is invalid. So does my brain. However
bash seems OK with it. Why, I wonder? Maybe I am not clear on the
expansion rules in this instance.
x=`echo \"'\\\"\"` isn't
Ditto, except bash also (correctly IMO) doesn't like it.
The other way around:
x=`echo "'\""` is valid
x="`echo "'\""`" isn't
but both are highlighted as valid.
That's odd, because all of the following are valid:
echo "'\""
echo `echo "'\""`
x="$(echo "'\"")" <-- this should be syntactically equivalent?!
...so this feels like a bug in bash.
--
Matthew
Vs lbh pna ernq guvf jvgubhg fbsgjner, lbh ner n FREVBHF areq! --
Nqncgrq sebz Znggurj Jva (ivz-qri znvyvat yvfg)
_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash