unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#65975: Wrong indentation for shell-script mode with stuff after a pipe after a "done"
@ 2023-09-14  9:08 Dan Jacobson
  0 siblings, 0 replies; only message in thread
From: Dan Jacobson @ 2023-09-14  9:08 UTC (permalink / raw)
  To: 65975

If one does C-x h TAB, one will see this is wrongly indented at the end.
Indeed, the problem starts at the "|wc".

$ cat b.sh
if true
then
    for i
    do echo
    done|
	wc
fi

if true
then
    for i
    do echo
    done|wc
    fi
       : bla
$ sh -n b.sh
$ emacs -Q b.sh
emacs-version "29.1"





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-14  9:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-14  9:08 bug#65975: Wrong indentation for shell-script mode with stuff after a pipe after a "done" Dan Jacobson

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).