From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61192: Emacs 28.1: Bash Shell Script Indenting does not recognize if, [....]; then Date: Tue, 31 Jan 2023 15:53:09 +0200 Message-ID: <83cz6u3j5m.fsf@gnu.org> References: <2cd38f68-a14c-6937-1356-c86be3232a0b@pobox.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="475"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61192-done@debbugs.gnu.org To: stephm@pobox.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 31 15:32:40 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMrgd-000AUw-MC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Jan 2023 15:32:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMr5I-0005DY-3A; Tue, 31 Jan 2023 08:54:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMr5G-0005DL-Sz for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2023 08:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMr5G-0008TU-Hi for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2023 08:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMr5G-0007lT-Cz for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2023 08:54:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Jan 2023 13:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 61192 X-GNU-PR-Package: emacs Mail-Followup-To: 61192@debbugs.gnu.org, eliz@gnu.org, stephm@pobox.com Original-Received: via spool by 61192-done@debbugs.gnu.org id=D61192.167517320229781 (code D ref 61192); Tue, 31 Jan 2023 13:54:02 +0000 Original-Received: (at 61192-done) by debbugs.gnu.org; 31 Jan 2023 13:53:22 +0000 Original-Received: from localhost ([127.0.0.1]:51880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMr4b-0007kH-Mu for submit@debbugs.gnu.org; Tue, 31 Jan 2023 08:53:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMr4Y-0007k3-Tk for 61192-done@debbugs.gnu.org; Tue, 31 Jan 2023 08:53:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMr4T-0008IC-IJ; Tue, 31 Jan 2023 08:53:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+H60AZTaaRkszVLIyzzy4g5ddbTMk66MrFeFuGq2tXA=; b=K55y909POIcD HvbY6Nl6yCFK3Mm6dK8j1pgiUrb4cah1fWihZl8UF9dFJEWFxb9chX6a3xcjUol8XCiMSgJF+z9yW NqRwGk022vkeXJKgmBT489Z4dfA6uXiZ0/03iHi1/q8iDy/iU6oYY98Pb2onb54Vnb/Q5+Qg4g29M ZT1FrT4TnyDN/zf9iD2BY58cPoj6DvuQnUlpFQcxXbIAyTCHZfEhCFxjPXvj7+xucN6088Jtw+40k ODWAL+6FJg3zF3lzrGfrAV4SSQSs0fYl8H1sEZ8FcjrsYy0XGl2JA6Hj5tziWnQ1hzcdudKoZueWt mqg80hMjHNJe6Rjqwvvk1A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMr4T-00032w-0V; Tue, 31 Jan 2023 08:53:13 -0500 In-Reply-To: <2cd38f68-a14c-6937-1356-c86be3232a0b@pobox.com> (message from Stephen Montsaroff on Mon, 30 Jan 2023 14:14:32 -0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254515 Archived-At: > Date: Mon, 30 Jan 2023 14:14:32 -0800 > From: Stephen Montsaroff > > Since upgrade to Emacs 28.1, I have noted an annoy change in > shell-script mode auto-formatting. > > I would like to recover the old behavior > > Before, if I entered > > if [ "$x" = "" ];then > export x=$y > fi > > and then enter new line, the new line would align with the fi > > if [ "$x" = "" ];then > export x=$y > fi > cp fred ethel > > Now it I do the same thing I get the new line indented > > if [ "$x" = "" ];then > export x=$y > fi > cp fred ethel > > The matching code also does not recognize that the > fi is connected to the then statement. I can reproduce this in Emacs 28.1, but not in Emacs 28.2 and later. So I think we already fixed this bug; please upgrade. I'm therefore closing this bug.