Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why does builtin 'test' differ from /usr/bin/test
- X-seq: zsh-users 11109
- From: Peter Stephenson <pws@xxxxxxx>
- To: "zsh-users Mailinglist" <zsh-users@xxxxxxxxxx>
- Subject: Re: Why does builtin 'test' differ from /usr/bin/test
- Date: Tue, 09 Jan 2007 10:30:50 +0000
- In-reply-to: <F7507090F1A72B43A51444325DFBE43101723822@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <F7507090F1A72B43A51444325DFBE43101723822@xxxxxxxxxxxxxxxxxxxxxxxxxx>
"Com MN PG P E B Consultant 3" wrote:
> test -a = '-?' -o -a = '?' && echo true # true
>
> Why is the first (builtin) test true?
It looks like you've got an old version of zsh; it's returned false
since at least 4.2. I can see it returned true in 3.0.6 (Solaris 8).
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
Messages sorted by:
Reverse Date,
Date,
Thread,
Author