all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15613: Wrong indentation in Shell-script[sh] mode?
@ 2013-10-14 20:53 Angelo Graziosi
  2013-10-15 14:37 ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Angelo Graziosi @ 2013-10-14 20:53 UTC (permalink / raw
  To: 15613

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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-10-17 16:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-14 20:53 bug#15613: Wrong indentation in Shell-script[sh] mode? Angelo Graziosi
2013-10-15 14:37 ` 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

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.