--- Begin Message ---
Subject: |
shell-script mode doesn't indent properly for the 'select' statement |
Date: |
Sun, 20 Feb 2011 13:56:57 +0800 |
shell-script mode doesn't indent properly for the 'select' statement
Maybe it has never heard of it, among other things.
select kernel
do
aptitude purge $kernel #not indented by TAB but should be
break
done
for i
do
bla
done
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#8086: shell-script mode doesn't indent properly for the 'select' statement |
Date: |
Fri, 15 Jul 2011 19:20:07 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
address@hidden wrote:
> select kernel
> do
> aptitude purge $kernel #not indented by TAB but should be
> break
> done
Works for me in every release from at least 22.1.
emacs -Q -f sh-mode
which uses "Shell-script[bash]".
Perhaps the complaint is that it is not recognized in "sh" (as opposed
to "bash") mode? If so, I tried /bin/sh on Solaris and it did not accept
this syntax. So it does not seem appropriate for sh-mode to recognize
this for "sh".
--- End Message ---