all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: 15613@debbugs.gnu.org
Subject: bug#15613: Wrong indentation in Shell-script[sh] mode?
Date: Mon, 14 Oct 2013 22:53:04 +0200	[thread overview]
Message-ID: <525C59B0.7090804@alice.it> (raw)

In the current trunk the indentation for bash scripts looks as in this 
test case:

$ cat test_indent.sh
#!/bin/bash

if [ "${foo_a}" != "${foo_b}" ]; then

     if [ "${foo_c}" = "${foo_d}" ]; then
	echo
	echo "Hello..."
	echo
	exit 1
     fi

     fi


The inner if-fi looks ok but in the outer one expects the last fi under 
the first if.. Or not?

This happens with

$ emacs -Q &

and using TAB to indent..


Ciao,
  Angelo.





             reply	other threads:[~2013-10-14 20:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-14 20:53 Angelo Graziosi [this message]
2013-10-15 14:37 ` bug#15613: Wrong indentation in Shell-script[sh] mode? Stefan Monnier
2013-10-15 14:56   ` Glenn Morris
2013-10-15 22:26     ` Angelo Graziosi
2013-10-15 22:23   ` Angelo Graziosi
2013-10-16 22:41   ` Glenn Morris
2013-10-17  1:03     ` Stefan Monnier
2013-10-17  2:03       ` Glenn Morris
2013-10-17  3:57         ` Stefan Monnier
2013-10-17 16:46           ` Angelo Graziosi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=525C59B0.7090804@alice.it \
    --to=angelo.graziosi@alice.it \
    --cc=15613@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.