GNU bug report logs - #22341
shell-script indents lines following "cmd &| while" wrong

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Ian Kelling <ian@HIDDEN>; dated Sun, 10 Jan 2016 01:28:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jan 2016 01:27:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 09 20:27:38 2016
Received: from localhost ([127.0.0.1]:44776 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aI4nC-00065K-2O
	for submit <at> debbugs.gnu.org; Sat, 09 Jan 2016 20:27:38 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44540)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <ian@HIDDEN>) id 1aI4nA-000657-Kx
 for submit <at> debbugs.gnu.org; Sat, 09 Jan 2016 20:27:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ian@HIDDEN>) id 1aI4n4-0006lU-6F
 for submit <at> debbugs.gnu.org; Sat, 09 Jan 2016 20:27:31 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42429)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ian@HIDDEN>) id 1aI4n4-0006lP-2s
 for submit <at> debbugs.gnu.org; Sat, 09 Jan 2016 20:27:30 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35502)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ian@HIDDEN>) id 1aI4n2-0000uo-Sc
 for bug-gnu-emacs@HIDDEN; Sat, 09 Jan 2016 20:27:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ian@HIDDEN>) id 1aI4mz-0006ks-IH
 for bug-gnu-emacs@HIDDEN; Sat, 09 Jan 2016 20:27:28 -0500
Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34134)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ian@HIDDEN>) id 1aI4mz-0006ko-AC
 for bug-gnu-emacs@HIDDEN; Sat, 09 Jan 2016 20:27:25 -0500
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46])
 by mailout.nyi.internal (Postfix) with ESMTP id 25AF72032F
 for <bug-gnu-emacs@HIDDEN>; Sat,  9 Jan 2016 20:27:22 -0500 (EST)
Received: from web3 ([10.202.2.213])
 by compute6.internal (MEProxy); Sat, 09 Jan 2016 20:27:22 -0500
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=iankelling.org; h=
 content-transfer-encoding:content-type:date:from:message-id
 :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=a8S
 hukZ6fqHV2f1YMqAux7ofthI=; b=UuugYRNfR7vTOsnGHg44uWeo9jtp0X3hMHP
 yeHBosB3pJsvoklYaHebAqsJpYh7qHwoq3zxQ7KTyK0Aa0DtEZKDipoN0Cm4qagd
 0NFZOybdyY34st6yoC1wAwC+FMnYtIeqey12KII+g8dvtKRpuK/Z6LYWeAfgztVa
 ZPOkivZg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:content-type
 :date:from:message-id:mime-version:subject:to:x-sasl-enc
 :x-sasl-enc; s=smtpout; bh=a8ShukZ6fqHV2f1YMqAux7ofthI=; b=L68Bx
 Zv8wf90dHpLm8f9Y4itTKRZhhnXOPokNBWpb6NHepHZXrhqct/XPyfxRjgxNSyTA
 0h6lalIEn6Dgf8BJxT8o9qr6CoGQLqMFNhyljliP/dZdOfre9G7OQOTmh8d5qu4I
 j82d3oHbTTDVkwiCv6qEcHQ0v1eo3pa/y4p6jg=
Received: by web3.nyi.internal (Postfix, from userid 99)
 id D216710F95B; Sat,  9 Jan 2016 20:27:21 -0500 (EST)
Message-Id: <1452389241.789156.487622666.332776C8@HIDDEN>
X-Sasl-Enc: aWWCP+suhG/Hpv3c/NsyyG2NI8viRvfm8XjyGVHFRI6/ 1452389241
From: Ian Kelling <ian@HIDDEN>
To: bug-gnu-emacs@HIDDEN
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
X-Mailer: MessagingEngine.com Webmail Interface - ajax-6cda141f
Subject: shell-script indents lines following "cmd &| while" wrong
Date: Sat, 09 Jan 2016 17:27:21 -0800
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

cmd and done should be indented the same:

cmd |& asdf; while read line; do
                 cmd
             done

cmd 2>&1 | while read line; do
    cmd
done




In GNU Emacs 25.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.6)
 of 2016-01-09 built on treetowl
Repository revision: 384cf23c6ed05e1f151032958a2cc2bb8100344b
Windowing system distributor 'The X.Org Foundation', version
11.0.11800000
System Description:     Arch Linux

Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --mandir=/usr/share/man
 --pdfdir=/usr/share/doc/emacs/pdf --with-sound=alsa --without-gconf
 --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic
 -O2 -pipe -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Shell-script

Minor modes in effect:
  sh-electric-here-document-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
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Mark set
Indenting region...done
t
delete-backward-char: Text is read-only [2 times]
Quit

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message dired dired-loaddefs
format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util help-fns mail-prsvr mail-utils seq byte-opt gv
bytecomp byte-compile cconv cl-extra help-mode easymenu cl-loaddefs
pcase cl-lib sh-script smie executable time-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote dbusbind inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 94001 5963)
 (symbols 48 20120 0)
 (miscs 40 47 107)
 (strings 32 17021 4462)
 (string-bytes 1 500205)
 (vectors 16 12561)
 (vector-slots 8 443666 4885)
 (floats 8 158 239)
 (intervals 56 261 0)
 (buffers 976 12)
 (heap 1024 35726 1091))




Acknowledgement sent to Ian Kelling <ian@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#22341; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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