From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7670 invoked by alias); 20 Aug 2015 16:42:29 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20447 Received: (qmail 27215 invoked from network); 20 Aug 2015 16:42:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=1LhLkjFtF/IxP62ybTx1Lra6Wq9Vrf8MShkg332lrIk=; b=QcJNDvVQLH8/MJKEvy2vyGG3VACfxOLh54WAIorUhenNZd0v051OKxHy58ESB1wUjn b9N9ZdGJ/lG+MBygNHXI92VHoZFwYJAUcEQp+j3HCs/LaFabwCmq72RMHsbbpgLh7xBm CzAzbXXeFBVmaIOB0jT1hbxYTGnomyMpF0IroeGZh4rR56sSEHp5TBwjZEHzcxGgoGF2 zldRkw7UVUcn5KQFXErBk9JGa03xGVH8iHKL9uKE0vvuPdVNVBKj95/j1qFQ/4FXxxlU En82YSlEMu2SUrM2T/e53EoUL3sOqdK3KImEj4YzUdg6a3ovggRsw2R/JKNU34h7BVF8 VyQA== X-Received: by 10.194.122.168 with SMTP id lt8mr7292813wjb.35.1440088945404; Thu, 20 Aug 2015 09:42:25 -0700 (PDT) Date: Thu, 20 Aug 2015 17:42:23 +0100 From: Stephane Chazelas To: Peter Stephenson Cc: zsh-users@zsh.org Subject: Re: list last modified files Message-ID: <20150820164223.GA9683@chaz.gmail.com> Mail-Followup-To: Peter Stephenson , zsh-users@zsh.org References: <6ac3d5e6.2de49d01.55d4fc3c.9415a@prokonto.pl> <150819213302.ZM28036@torch.brasslantern.com> <794c2899.3f499b8c.55d5d132.18267@prokonto.pl> <20150820142913.77fa5bca@pwslap01u.europe.root.pri> <150820083431.ZM29050@torch.brasslantern.com> <20150820165552.2b5ec817__22391.7863135741$1440086232$gmane$org@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150820165552.2b5ec817__22391.7863135741$1440086232$gmane$org@pwslap01u.europe.root.pri> User-Agent: Mutt/1.5.21 (2010-09-15) 2015-08-20 16:55:52 +0100, Peter Stephenson: [...] > set -- 1 2 3 4 5 6 > for one two three; do > print $one $two $three > done > > 1 2 3 > 4 5 6 > > and you can replace "one" by "in" if you lke, but don't. [...] Note that you can also do: for one two three do print $one $two $three done Note that "for i do" is Bourne and POSIX while "for i; do" is neither (though there's talk of making it standard in the next version of POSIX since most modern shells support it, and it's a common idiom). -- Stephane