bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong indentation of statements after certain case labels in sh-mode


From: Alexander Pohoyda
Subject: Re: Wrong indentation of statements after certain case labels in sh-mode.
Date: 25 Nov 2003 22:37:31 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"Schöpflin, Markus"     <markus.schoepflin@comsoft.de> writes:

> Shell script case labels containing [] are disturbing the
> indentation of statements following the case label.

I cannot reproduce it on the current Emacs.


>                                      If you take the following code
> snippet and indent it in sh-mode, the second case label triggers the
> bug. The indentation is ok for the rest of the case statement,
> though.
> 
> case xyz in
>   
>   foo)
>     echo foo
>     ;;
>   
>   [bar])
>   echo bar
>   ;;
>   
>   foobar)
>     echo foobar
>     ;;
>   
>   *)
>     echo default
> esac

Indentation does not work at all if I insert only this snippet. The
sh-mode is obviously failing to find a name of the shell.

If I add a "#!/bin/bash" in the first line, indentation works OK.


-- 
Alexander Pohoyda <alexander.pohoyda@gmx.net>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72  15 54 5F 62 20 23 C6 44




reply via email to

[Prev in Thread] Current Thread [Next in Thread]