GNU bug report logs - #46501
Shell-script mode vs here-docs

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 14 Feb 2021 02:16:02 UTC

Severity: minor

Tags: confirmed

Merged with 6391

Found in versions 23.2, 25.2, 26.3

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Shell-script mode vs here-docs
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"




This bug report was last modified 2 years and 363 days ago.

Previous Next


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