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

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 13 Jul 2019 17:37:19 +0200

Andreas Schwab <[email-masked]> 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