[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell-script goofy indentation
From: |
Jari Aalto |
Subject: |
Re: shell-script goofy indentation |
Date: |
Wed, 01 Dec 2004 20:17:20 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (windows-nt) |
Dan Jacobson <jidanni@jidanni.org> writes:
| rms> I tried it, and the indentation did not change. Is that a bug?
|
| Well shouldn't the then and the else be at the same indentation?
|
| Wait, more challenges, hit TAB on each line (which shouldn't change
| anything, as I have already hit TAB there)
| if a
| then b
| elif c
| then g
| fi
I think the sh-mode is programmed to expect constructs like this:
if a ; then
b
elif c ; then
g
fi
Or like this for longish "a" and "c" conditions:
if a
then
b
elif c
then
g
fi
Jari