Subject: Re: bug#46501: Shell-script mode vs here-docs

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 17 Jun 2022 15:48:58 +0200

積丹尼 Dan Jacobson <[email-masked]> writes:

> $ cat s.sh
> #!/bin/bash
> xxx=yyy
> #Here Shell-script mode should make the $(beep) into the same color as
> the rest of the line:
> cat <<\EOF
> Bla Bla $xxx $(beep)
> EOF
> #And here Shell-script mode should make $xxx a different color than
> the rest of the line:
> cat <<EOF
> Bla Bla $xxx $(beep)
> EOF
> #By the way, in this comment, $(beep) should be the same color as the
> rest of the comment.
> $ emacs -Q s.sh
> (By the way, changing /bin/bash to /bin/sh above fixes most of the
> problems.)
> emacs-version "27.1"

This looks like a duplicate of bug#6391, so I've now merged them.

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