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 #8 received at 46501 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 46501 <at> debbugs.gnu.org
Subject: Re: bug#46501: Shell-script mode vs here-docs
Date: Fri, 17 Jun 2022 15:48:58 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> 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




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

Previous Next


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