GNU bug report logs -
#25768
25.1; wrong indent in shell-script-mode
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25768 in the body.
You can then email your comments to 25768 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25768
; Package
emacs
.
(Fri, 17 Feb 2017 00:55:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Frank Breitling <frank.breitling <at> gmx.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 17 Feb 2017 00:55:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I get the following indentation for my bash script in shell-script mode:
for i in *; {
echo $i
}
echo done
The last indent is wrong and should be zero spaces.
I also discuss this problem at
https://emacs.stackexchange.com/questions/30745/wrong-indent-with-emacs-24-and-25-in-shell-script-mode
It also appears in emacs 24.
In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.5)
of 2017-01-01, modified by Debian built on binet
System Description: Debian GNU/Linux 9.0 (stretch)
Configured using:
'configure --build x86_64-linux-gnu --prefix=/usr
--sharedstatedir=/var/lib --libexecdir=/usr/lib
--localstatedir=/var/lib --infodir=/usr/share/info
--mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/si\
te-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/\
share/emacs/site-lisp
--with-sound=alsa --build x86_64-linux-gnu --prefix=/usr
--sharedstatedir=/var/lib --libexecdir=/usr/lib
--localstatedir=/var/lib --infodir=/usr/share/info
--mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/si\
te-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/\
share/emacs/site-lisp
--with-sound=alsa --with-x=yes --with-x-toolkit=gtk3
--with-toolkit-scroll-bars 'CFLAGS=-g -O2
-fdebug-prefix-map=/build/emacs25-4Gc0bO/emacs25-25.1+1=.
-fstack-protector-strong -Wformat -Werror=format-security -Wall'
'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11
Important settings:
value of $LC_NUMERIC: en_US.UTF-8
value of $LANG: en_US.utf8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
show-paren-mode: t
delete-selection-mode: t
cua-mode: t
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25768
; Package
emacs
.
(Sat, 18 Feb 2017 16:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 25768 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Frank Breitling <frank.breitling <at> gmx.de> schrieb am Fr., 17. Feb. 2017 um
02:00 Uhr:
> 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.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25768
; Package
emacs
.
(Fri, 05 Feb 2021 13:19:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 25768 <at> debbugs.gnu.org (full text, mbox):
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
bug closed, send any further explanations to
25768 <at> debbugs.gnu.org and Frank Breitling <frank.breitling <at> gmx.de>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 05 Feb 2021 13:19:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 06 Mar 2021 12:24:07 GMT)
Full text and
rfc822 format available.
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.