Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: list last modified files
- X-seq: zsh-users 20447
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: list last modified files
- Date: Thu, 20 Aug 2015 17:42:23 +0100
- Cc: zsh-users@xxxxxxx
- 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==
- In-reply-to: <20150820165552.2b5ec817__22391.7863135741$1440086232$gmane$org@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- 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>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author