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

Re: is text file?



Peter Stephenson wrote:
> Or do you mean, why can't I put the ~ in the same ${...}, in which case,
> at least in 3.0.5 and 3.1.2, I think you can.
>
> % echo *(${(j/|/)~fignore})
> Makefile~ builtin.c~ builtin.o ...

Yes, this always worked I think.

> (Or did you mean, why doesn't it go between the { and the (, in which
> case the answer is `it just doesn't, but maybe it should say so in
> the manual'.)

The manual says: if the opening brace is immediately followed by an opening
parenthesis...  So it is clear, that the tilde must come after the closing
parenthesis.

Zoli



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