From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: shell-script indenting of &&, | Date: Wed, 27 Feb 2008 10:51:27 -0500 Message-ID: References: <877igrl25o.fsf@jidanni.org> <200802270815.30901.andreas.roehler@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204127575 1743 80.91.229.12 (27 Feb 2008 15:52:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2008 15:52:55 +0000 (UTC) Cc: jidanni@jidanni.org, emacs-devel@gnu.org To: Andreas =?iso-8859-1?Q?R=1FFFFFFFhler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 16:53:13 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JUOaU-0005Ns-9V for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 16:52:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUOZy-0006bX-84 for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 10:52:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUOZC-0005jr-GJ for emacs-devel@gnu.org; Wed, 27 Feb 2008 10:51:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUOZA-0005iB-NV for emacs-devel@gnu.org; Wed, 27 Feb 2008 10:51:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUOZA-0005i2-BK for emacs-devel@gnu.org; Wed, 27 Feb 2008 10:51:32 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUOZ9-0006Iu-PE for emacs-devel@gnu.org; Wed, 27 Feb 2008 10:51:31 -0500 Original-Received: from ceviche.home (vpn-132-204-232-171.acd.umontreal.ca [132.204.232.171]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m1RFpUwU027649 for ; Wed, 27 Feb 2008 10:51:30 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 18B02B422B; Wed, 27 Feb 2008 10:51:27 -0500 (EST) In-Reply-To: <200802270815.30901.andreas.roehler@online.de> ("Andreas =?iso-8859-1?Q?R=1FFFFFFFhler=22's?= message of "Wed, 27 Feb 2008 08:15:29 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered HAS_X_HELO=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90614 Archived-At: >> RMS told me to send this here. >> In shell-script mode, shouldn't lines 2, 3, and 4 be somewhat indented? >> 1 who >> 2 k=/cf && mountpoint -q $k/ && cd $k && >> 3 find *norblewitz -mtime -1 -type f ! -name \*~| >> 4 cpio -vo|gzip > /var/tmp/cfBAK.`date +%u`.gz >> 5 mailq > Line 2 must not, as it's top level IMO. > As `&&' may be considered as if-then form, I would > welcome indentation for lines 3 and 4. > Respective following || Agreed. Patches welcome, Stefan