From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Issue with bash new syntax. Date: Tue, 26 Jan 2021 15:17:06 +0100 Message-ID: <20210126141706.uk5dtaenpdbydfr6@Ergus> References: <20210126141706.uk5dtaenpdbydfr6.ref@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3411"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 26 15:18:21 2021 Return-path: Envelope-to: ged-emacs-devel@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 1l4PAj-0000l3-M3 for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jan 2021 15:18:21 +0100 Original-Received: from localhost ([::1]:56328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4PAi-0006Dt-Oq for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jan 2021 09:18:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4P9u-0005Ru-Gm for emacs-devel@gnu.org; Tue, 26 Jan 2021 09:17:30 -0500 Original-Received: from sonic303-2.consmr.mail.bf2.yahoo.com ([74.6.131.41]:44340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4P9r-0004nY-QF for emacs-devel@gnu.org; Tue, 26 Jan 2021 09:17:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1611670645; bh=Pu1tKdoznI+nuaEvJUfsWOeaEElGZTpLyxhUXVODeZQ=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=UTLbWqP/1rEWtKgp4bth4459RoGsIusmfWc3hHctgHf8FGmS3Vh7KOCaNfDjl28PPyNwjFQUDch9k39ttnFmIa2InoU7wwBh9F7raF/l3A3CnN+IyPjdcOqTDKfjd2ho5T/FB+11pzT491BeAmETO4kTQmBpfZtnYk/Hz825kuDNnQyCmsabJFFEqUdr8WqKdQgzpyIWD+iFq4xK61/iWDMC1Ko6VZQGJEbDUFK516aqXIi++VqaA1pBv7RfO+ZxMIz5DmhdJ012WBFcb6CzPH+rwpp6L7uBMx/pduyCOuig+2c/PPtUoO+KP09ESrZ0tCYpTprwjfkf9azER964iQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1611670645; bh=JffjJVCRBJRI5RZj46gMoPzmq56IP8h6TgHOTwm/7PB=; h=Date:From:To:Subject:From:Subject:Reply-To; b=kpQfEY54qOf/0/Nq9/C90Tl+fNq3Qe7/p1367jop1hO6D8pO2Qi5YTUWeQEmgvRGsUDDeKpOM38PHTpB2Csu7z/x5lJDrF9Nqyiv1acmg8uezEm1JxyjbZqjnhp47wjqAitmxy9ymymftQ2jWhrWf/j5jVXJS6VRU/f0TvGB5eQBrWZzsGmuJr2YaDSOaG693B7UfqiJGnHHsEF/rKYfwaaVmc4Skw1LJ1Xzte6yZFaAHhs4NI1FIGUguFfmw6Qf2fR0mMXNmzGbwkgaru8Cv0qSvi+kk9kgdmUu4hJeJmAeJTk79VUhJ1p9QWlvxybezrEtEYE+V+vwLpJoTi4dKw== X-YMail-OSG: 1X1ZpzYVM1lCuHEIBc_S0mUHo8C5oqw0SQdL1RU6K6oYyYsEhdgG__BA0TF_1qC 32Awm0I6Wz1hWFFDF7fwRyMuf6Q0gfBj0B_tIDOKCselSoKgkLRkCCalKdhozFBNe6lrOP9rhu9L 0l2TQ0pKl3V2NjNltEdx2PDQVS4QmwdLXpReu32r7n7iPXwzTuw3xyJN8hPRFxoO1WKaMs2TS5Fn iECZne_YQCX6FrLovDvtO9dDAbSGxFjn_6higWRfwh2cxuMkzFplAYYQggSU.V.4f9MfOmxxuwt7 adNh3xvoT2ERnA.iP.93gUYVoEVA_WZa.CVCOZhU6.v4MDVGIiPLBgm2jdrjije0jwEL4O3PuAER yM8zY6cHW1dzGS13pSspTiBDYEDPgHwXegLaVjO4JwWzc2G3BfoD5tbVNWuSClHvYbRcINDPAGsn 5k_xPeCMS8gFVnp5Q.bAoaIN6xUngyul__YZDr1McJV6aQAD.rAjBVBAfyKZE3Qsf7gGKFCSDhbq WqsqDC2f8QbQBegbY2WuRMxdP15stoe812iRJnPzBq9JlRkJacxNNQfdoSwTkO4coYVaEsQQWX7N y4WdXVYqc0_9DvUEEqTuRKKyGhVmRGiwhgaDiEFFK5D2.ZSHb1SPTTrwo8BNF_dnFe9QgPKMhinG zaw.UWNP2QsWQpOFhAQDXJsZ9CjFzQe8I.C8Tj.P0Q8dTKlPijV9L2UJCYxC5Bp77s0.IWJonDDi Ll2uBzyRR22ygeuN9CiCwwrWBjiCSiA7uGtXOPx5NK80eqf6QUeyaXpDpMXi5AQG3Elb5C8fGsyy xBWmrzz8Vx0VBOrnT3d8uteXFjbPkcaTaf1T6NJjtS Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Tue, 26 Jan 2021 14:17:25 +0000 Original-Received: by smtp407.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 49aa55417a191cef09d201b3a9d311cd; Tue, 26 Jan 2021 14:17:21 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.17642 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.8) Received-SPF: pass client-ip=74.6.131.41; envelope-from=spacibba@aol.com; helo=sonic303-2.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:263457 Archived-At: Hi: I am observing some issues with the indentation of the modern for loop syntax in bash: for ((it=0; it<${limit}; ++it)) { echo "whatever $it" } The question-issue comes in two parts. Question: How can I configure to remove the extra indentation before `{`? In cc-mode there is a procedure, a bit cumbersome, but working. But sh-mode does not have such a thing. Issue: When this loop is nested inside an if or another for loop the closing indentation seems to be broken for dim in ${dims[@]}; do for bs in ${blocksizes[@]}; do if [ something ]; then for ((it=0; it<${ARGS[R]}; ++it)) { whatever... } --> else somethingelse --> fi --> done --> done Should I report a bug for this?