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

Re: Bug / error in manpage.



On Tue, 02 Oct 2012 07:06:43 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> What PWS's patch does, in effect, is arrange that [ ] will quote the
> redirection operators so you no longer need to explicitly quote them in
> that particular context.  This is probably breaking some rule or other
> of POSIX shell syntax but I can't immediately come up with any example
> where it will matter.

Here's one:

[</dev/null ]

Before returned false, now says

zsh: no such file or directory: [</dev/null

That looks likes something of a dealbreaker; there's no simple
syntactic distinction between that and the cases that we'd like to work.
It might be better just to document the limitations.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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