GNU bug report logs - #25768
25.1; wrong indent in shell-script-mode

Previous Next

Package: emacs;

Reported by: Frank Breitling <frank.breitling <at> gmx.de>

Date: Fri, 17 Feb 2017 00:55:02 UTC

Severity: minor

Found in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 25768 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 25768 <at> debbugs.gnu.org, Frank Breitling <frank.breitling <at> gmx.de>
Subject: Re: bug#25768: 25.1; wrong indent in shell-script-mode
Date: Fri, 05 Feb 2021 14:18:37 +0100
Philipp Stephani <p.stephani2 <at> gmail.com> writes:

>  I get the following indentation for my bash script in shell-script mode:
>
>  for i in *; {
>       echo $i
>  }
>            echo done
>
> This is not documented Bash syntax: there is a 'do' required after the ';'. 
> The Bash parser accepts this form, but it remains undocumented, so Emacs
> doesn't need to support it.

So I guess this is something we don't want to fix, and I'm closing this
bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 106 days ago.

Previous Next


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