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

From: 積丹尼 Dan Jacobson <[email-masked]>
Date: Sun, 14 Feb 2021 08:36:53 +0800

$ 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"