From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.bugs Subject: bug#15613: Wrong indentation in Shell-script[sh] mode? Date: Mon, 14 Oct 2013 22:53:04 +0200 Message-ID: <525C59B0.7090804@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1381784059 20434 80.91.229.3 (14 Oct 2013 20:54:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2013 20:54:19 +0000 (UTC) To: 15613@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 14 22:54:23 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VVp9h-0004nM-EH for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2013 22:54:21 +0200 Original-Received: from localhost ([::1]:38721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVp9g-0006RN-TG for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2013 16:54:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVp9W-0006R5-I6 for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 16:54:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVp9O-0000Qn-Kx for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 16:54:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVp9O-0000Qj-Ha for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 16:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VVp9O-0001Xg-2p for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 16:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Angelo Graziosi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Oct 2013 20:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15613 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.13817840245883 (code B ref -1); Mon, 14 Oct 2013 20:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Oct 2013 20:53:44 +0000 Original-Received: from localhost ([127.0.0.1]:49373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VVp95-0001Wo-B6 for submit@debbugs.gnu.org; Mon, 14 Oct 2013 16:53:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45517) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VVp91-0001WT-Pk for submit@debbugs.gnu.org; Mon, 14 Oct 2013 16:53:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVp8o-0000Bb-Ix for submit@debbugs.gnu.org; Mon, 14 Oct 2013 16:53:34 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVp8o-0000BT-Fy for submit@debbugs.gnu.org; Mon, 14 Oct 2013 16:53:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVp8h-00065c-IF for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 16:53:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVp8a-00008o-Vg for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 16:53:19 -0400 Original-Received: from smtp203.alice.it ([82.57.200.99]:36890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVp8a-00008c-Nw for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 16:53:12 -0400 Original-Received: from [192.168.1.100] (79.9.171.144) by smtp203.alice.it (8.6.060.28) (authenticated as angelo.graziosi@alice.it) id 52494B4301387FCA for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 22:53:10 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79249 Archived-At: In the current trunk the indentation for bash scripts looks as in this test case: $ cat test_indent.sh #!/bin/bash if [ "${foo_a}" != "${foo_b}" ]; then if [ "${foo_c}" = "${foo_d}" ]; then echo echo "Hello..." echo exit 1 fi fi The inner if-fi looks ok but in the outer one expects the last fi under the first if.. Or not? This happens with $ emacs -Q & and using TAB to indent.. Ciao, Angelo.