GNU bug report logs - #8086
shell-script mode doesn't indent properly for the 'select' statement

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sun, 20 Feb 2011 06:04:02 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.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 8086 in the body.
You can then email your comments to 8086 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8086; Package emacs. (Sun, 20 Feb 2011 06:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 20 Feb 2011 06:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
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




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Fri, 15 Jul 2011 23:21:02 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Fri, 15 Jul 2011 23:21:02 GMT) Full text and rfc822 format available.

Message #10 received at 8086-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 8086-done <at> debbugs.gnu.org
Subject: Re: bug#8086: shell-script mode doesn't indent properly for the
	'select' statement
Date: Fri, 15 Jul 2011 19:20:07 -0400
jidanni <at> jidanni.org 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".





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8086; Package emacs. (Fri, 15 Jul 2011 23:37:02 GMT) Full text and rfc822 format available.

Message #13 received at 8086 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: 8086 <at> debbugs.gnu.org
Subject: Re: bug#8086: closed (Re: bug#8086: shell-script mode doesn't indent
	properly for the 'select' statement)
Date: Sat, 16 Jul 2011 07:35:54 +0800
> emacs -Q -f sh-mode
Which turns on bash mode. So maybe this isn't a problem anymore.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 13 Aug 2011 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 12 days ago.

Previous Next


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