From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16006 invoked by alias); 20 Jan 2016 21:44:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37712 Received: (qmail 16021 invoked from network); 20 Jan 2016 21:44:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:To:From:Date; bh=Eh2NgHFquCtZJg85a3f3nvNXprjmGkQgOkh0/IEpTu8=; b=cGnwiSTc7gAzD18t2U38vxxFcaraVLnP96r258z74Qe7NCOIhXOKYNJKNAg1RF6ptsjwfZpx8HoWAbTfOUAl4B7I22c+ybNZv9cLm/jWNBnKaminCN6Jiz4FSfNqczEJUA/aHuOmfidu+1jf7tDZKcNmp+56XQArKYyZwIndq74=; Date: Wed, 20 Jan 2016 22:44:17 +0100 From: Trek To: zsh-workers@zsh.org Subject: Re: test is not posix Message-ID: <20160120224417.392efcb4@enterprise> In-Reply-To: <160120133858.ZM21525@torch.brasslantern.com> References: <20160120220614.18fe6683@enterprise> <160120133858.ZM21525@torch.brasslantern.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mras: Ok On Wed, 20 Jan 2016 13:38:58 -0800 Bart Schaefer wrote: > On Jan 20, 10:06pm, Trek wrote: > } the -n and -z options of the test utility are not posixly correct > if the } argument is "!", "(", ")" or "-a" > > I'm not able to reproduce this; what is the $ZSH_VERSION or > $ZSH_PATCHLEVEL that you are testing? What do you see if you run > with the -x option? sorry, I missed to include that I'm using the 5.0.7-5 version included in Debian GNU/Linux 8 (jessie) > % ARGV0=sh Src/zsh -c 'test -n "!" && echo OK' > OK happy to see that it is already fixed in the latest version, where on my system it prints the same error reported c-ya!