GNU bug report logs - #31710
26.1; sh-mode doesn't highlight aliases with dots correctly

Previous Next

Package: emacs;

Reported by: Aria Edm <aria <at> ar1as.space>

Date: Mon, 4 Jun 2018 12:15:02 UTC

Severity: minor

Tags: fixed

Found in version 26.1

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 31710 <at> debbugs.gnu.org, Aria Edm <aria <at> ar1as.space>
Subject: bug#31710: 26.1; sh-mode doesn't highlight aliases with dots correctly
Date: Sat, 13 Jul 2019 17:37:19 +0200
Andreas Schwab <schwab <at> linux-m68k.org> writes:

>> -    (bash . "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?\\+?=")
>> +    (bash . "\\<\\([[:alnum:]_]+\\)\\([.+]\\)?\\+?=")
>
> That doesn't make sense.  A dot or a plus isn't a valid character in a
> shell variable.

No, but this is the assignment regexp:

larsi <at> marnie:~$ a=4
larsi <at> marnie:~$ a+=6
larsi <at> marnie:~$ echo $a
46

I'm guessing .= has the same meaning in some other shell dialect...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 315 days ago.

Previous Next


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