Subject: bug#65975: Wrong indentation for shell-script mode with stuff after a pipe after a "done"

From: Dan Jacobson <[email-masked]>
Date: Thu, 14 Sep 2023 04:08:17 -0500

If one does C-x h TAB, one will see this is wrongly indented at the end.
Indeed, the problem starts at the "|wc".

$ cat b.sh
if true
then
    for i
    do echo
    done|
	wc
fi

if true
then
    for i
    do echo
    done|wc
    fi
       : bla
$ sh -n b.sh
$ emacs -Q b.sh
emacs-version "29.1"