Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: test is not posix
- X-seq: zsh-workers 37711
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Trek <trek00@xxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: test is not posix
- Date: Wed, 20 Jan 2016 13:38:58 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=kb5fNmCK/SwQ3YTmfKLo08BidHDLKfbVkpdfjNM3Mg8=; b=xixDX41oqyCMnjE40R4fgmn3VM/8lLT9K3IrZf7fSkmqk2ue0LNXdv6ncTcLXxi/J9 Vc6PSFsjqIuKLPPpCwMUUrd6nKzIUxp+W+WfDqAb07DrDwQfe1ieRIrvfe5sGsLcGLFk G7qU8FE9nacvdKjDVcwSSQHnwuuOnNcj1F8aYnGf3Q0dyqmt/nheZ93v/2DabF/luxBv bn8AyYs7cpecsSDhakOqCnuXCtD3EAC9m6KwD88KucSyGN5kcH8LeqcOCgjO0kr9byOY B5nNz8M9M+SNrkOuA5uuP/1QyeGhh8eQA3aK2/CsyV7cR5tg5P9ma200pVVor01r5d2E hjIQ==
- In-reply-to: <20160120220614.18fe6683@enterprise>
- 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>
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?
% ARGV0=sh Src/zsh -c 'test -n "!" && echo OK'
OK
%
Messages sorted by:
Reverse Date,
Date,
Thread,
Author