unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46501: Shell-script mode vs here-docs
@ 2021-02-14  0:36 積丹尼 Dan Jacobson
  2022-06-17 13:48 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-02-14  0:36 UTC (permalink / raw)
  To: 46501

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#46501: Shell-script mode vs here-docs
  2021-02-14  0:36 bug#46501: Shell-script mode vs here-docs 積丹尼 Dan Jacobson
@ 2022-06-17 13:48 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-17 13:48 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 46501

積丹尼 Dan Jacobson <jidanni@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-17 13:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-14  0:36 bug#46501: Shell-script mode vs here-docs 積丹尼 Dan Jacobson
2022-06-17 13:48 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).