Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: list last modified files



On Thu, 20 Aug 2015 15:08:02 +0200
rooom <rooom@xxxxxxxxxxx> wrote:
> BTW, what is 'in'?

It's simply a syntactic marker specific to "for" which looks for it in
the list of arguments.  In the original shell syntax it's not
really doing much except make it a bit more readable since you're forced
to use "for var in ...", but zsh makes a virtue of it by allowing you
to do "for var1 var2... in ..." --- unless your variable is called "in",
obviously, in which case you can't.

pws



Messages sorted by: Reverse Date, Date, Thread, Author