zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Builtin test and parsing of conditionals
Date: Thu, 05 Sep 2013 07:25:45 -0700	[thread overview]
Message-ID: <130905072545.ZM29595@torch.brasslantern.com> (raw)
In-Reply-To: <20130904200929.5028f433@pws-pc.ntlworld.com>

On Sep 4,  8:09pm, Peter Stephenson wrote:
}
} On Wed, 04 Sep 2013 10:39:40 -0700
} Bart Schaefer <schaefer@brasslantern.com> wrote:
} > Sorry, perhaps I should have been clearer:  "! -a !" means to compare the
} > truth value "!" to the truth value of "!".
} 
} OK, this looks straightforward enough.

That's good, but it still doesn't fix the other case mentioned in my
original email:

torch% /usr/bin/test ! = -a o ; print $?
1
torch% test ! = -a o ; print $? 
test: too many arguments
1

Do you want to try to handle that in parse.c, or am I correct that peeling
off the "!" in builtin.c:bin_test [the way parens are peeled off] is the
better way to go?

Either way, the comment in builtin.c should be updated with the new URL
path to test.html that Chet was kind enough to provide.  The one that's
there now is from 2007.


  reply	other threads:[~2013-09-05 14:26 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 [this message]
2013-09-06 19:20         ` Peter Stephenson
2013-09-04 20:15     ` Chet Ramey

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=130905072545.ZM29595@torch.brasslantern.com \
    --to=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).