[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug 103756] kate: syntax highlighting error: bash and escaped quote

From: Matthew Woehlke
Subject: Re: [Bug 103756] kate: syntax highlighting error: bash and escaped quotes
Date: Mon, 02 Apr 2007 13:01:45 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070221 Thunderbird/ Mnenhy/

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.

Vs lbh pna ernq guvf jvgubhg fbsgjner, lbh ner n FREVBHF areq! -- Nqncgrq sebz Znggurj Jva (ivz-qri znvyvat yvfg)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]