GNU bug report logs - #18379
24.3.93; Bash font lock: pretty inconsistent treatment of `` and $()

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita <at> gmail.com>

Date: Mon, 1 Sep 2014 14:19:02 UTC

Severity: minor

Found in version 24.3.93

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 18379 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Carlos Pita <carlosjosepita <at> gmail.com>
Cc: occitan <at> esperanto.org, 18379 <at> debbugs.gnu.org
Subject: Re: bug#18379: 24.3.93;
 Bash font lock: pretty inconsistent treatment of `` and $()
Date: Mon, 01 Sep 2014 17:03:32 +0200
Carlos Pita <carlosjosepita <at> gmail.com> writes:

> The syntax table treats ` as an string quote character, so
>
> `if [[ $x == x ]]; then echo x; else echo y fi`
>
> $(if [[ $x == x ]]; then echo x; else echo y fi)
>
> are highlighted in a very different way although they are semantically
> equivalent.

They have different quoting rules, with `...` using rules similar to
double quotes, whereas $(...) is a fully nesting construct.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




This bug report was last modified 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.