Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: test is not posix
- X-seq: zsh-workers 37712
- From: Trek <trek00@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: test is not posix
- Date: Wed, 20 Jan 2016 22:44:17 +0100
- 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=;
- In-reply-to: <160120133858.ZM21525@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160120220614.18fe6683@enterprise> <160120133858.ZM21525@torch.brasslantern.com>
On Wed, 20 Jan 2016 13:38:58 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author