Subject: 28.0.50; Recent changes cause functions in sh-script-mode to be indented incorrectly

From: Diego <[email-masked]>
Date: Wed, 01 Sep 2021 04:15:12 +0000

I'm not quite sure when this behavior was introduced, but I suspect commits 4bb70549 or 6392bc37a may be responsible:

With emacs built from git on commit 03dcceeee if I have a function, say:

myecho () {
    echo "foo"
}

And I call M-x indent-region on it, it gets indented to:

myecho () {
echo "foo"
}

Which I don't think is the correct indentation for functions in shell scripts.

Diego