zsh-workers
 help / color / mirror / code / Atom feed
From: Chet Ramey <chet.ramey@case.edu>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@zsh.org, chet.ramey@case.edu
Subject: Re: Builtin test and parsing of conditionals
Date: Wed, 04 Sep 2013 16:15:04 -0400	[thread overview]
Message-ID: <522794C8.1040804@case.edu> (raw)
In-Reply-To: <130904103940.ZM28454@torch.brasslantern.com>

On 9/4/13 1:39 PM, Bart Schaefer wrote:

> } So where does the
> } implicit comparison come from?  If -a were taken as high precedence you
> } might read it as
> } 
> } test -n ! -a n !
> } test -n ! -a n !
> 
> Presuming you mean -a -n there, this is exactly how the austin-group
> thread claims it should be interpreted, and is reportedly how ksh and
> bash and GNU /usr/bin/test all interpret it.

The rules, at least through four arguments, are well-defined.

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_128

-a and -o are binary primaries.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/


      parent reply	other threads:[~2013-09-04 20:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04 16:15 Bart Schaefer
2013-09-04 16:31 ` Peter Stephenson
2013-09-04 17:39   ` Bart Schaefer
2013-09-04 19:09     ` Peter Stephenson
2013-09-05 14:25       ` Bart Schaefer
2013-09-06 19:20         ` Peter Stephenson
2013-09-04 20:15     ` Chet Ramey [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=522794C8.1040804@case.edu \
    --to=chet.ramey@case.edu \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).