all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#45390: Shell-script mode doesn’t like redirection at beginning of command
@ 2020-12-23 10:33 Dario Gjorgjevski
  2022-06-07 12:02 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Dario Gjorgjevski @ 2020-12-23 10:33 UTC (permalink / raw)
  To: 45390

The “for” and “echo” in the following example are not font-locked in
shell-script mode, despite being syntactically valid.  (From my
experience, the “>&2 echo ...” idiom is quite common in practice, too.)

    >/dev/null for i in {1..5} ; do
        echo $i
    done
    >&2 echo 'Error!'

Additionally, the “for” and its “done” are not matched so the SMIE
grammar also needs fixing.

Best regards,
Dario

-- 
$ keyserver=hkps://hkps.pool.sks-keyservers.net
$ keyid=744A4F0B4F1C9371
$ gpg --keyserver $keyserver --search-keys $keyid





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

end of thread, other threads:[~2022-06-07 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-23 10:33 bug#45390: Shell-script mode doesn’t like redirection at beginning of command Dario Gjorgjevski
2022-06-07 12:02 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.