GNU bug report logs - #65975
Wrong indentation for shell-script mode with stuff after a pipe after a "done"

Previous Next

Package: emacs;

Reported by: Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 14 Sep 2023 09:09:01 UTC

Severity: minor

To reply to this bug, email your comments to 65975 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#65975; Package emacs. (Thu, 14 Sep 2023 09:09:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 14 Sep 2023 09:09:02 GMT) Full text and rfc822 format available.

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: Wrong indentation for shell-script mode with stuff after a pipe
 after a "done"
Date: Thu, 14 Sep 2023 04:08:17 -0500
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"




Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 15 Sep 2023 10:51:01 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 272 days ago.

Previous Next


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