Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug: [ "(" = ")" ] is true
Stephane Chazelas schreef op 09-12-15 om 16:58:
> http://www.zsh.org/mla/users/2007/msg01223.html seems to be to
> blame.
>
> If the first argument starts with a "(" and the last one starts in
> a ")", they are both removed.
>
> So all operators are affected not just "=" ([ "(file1)" -nt
> ")file2(" ]...)
Wow.
Not only that, the results are incorrect even after the removal.
$ test '(1' -eq ')2' && echo oops || echo ok
oops
$ test '1' -eq '2' && echo oops || echo ok
ok
- M.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author