bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Lars Ingebrigtsen
Subject: bug#31710: 26.1; sh-mode doesn't highlight aliases with dots correctly
Date: Sat, 13 Jul 2019 17:37:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Andreas Schwab <schwab@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@marnie:~$ a=4
larsi@marnie:~$ a+=6
larsi@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





reply via email to

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