zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: Re: Completion function for bitkeeper?
Date: Fri, 14 Nov 2003 18:52:31 +0100	[thread overview]
Message-ID: <25469.1068832351@gmcs3.local> (raw)
In-Reply-To: <1031114171417.ZM2439@candle.brasslantern.com>

Bart wrote:

> } > Word splitting is vastly different in the two cases.  It happens within
> } > the words of $action in the second case, but does not in the first case.
> 
> That's a bit incoherent, let me try again.

That makes more sense now. Not sure I'd describe it as "vastly
different". It would only affect fairly unusual cases.

> In this second case it's a syntax error.  I suppose it could be argued
> that the second case is unnecessary because it's only a shorthand for
> the first case with only one command in the braces.

Do you really think it's worth keeping both syntaxes though given that
it'd be nice to simplify _arguments syntax a little. I'd still be
inclined to deprecate the initial space form but I'm really not so
fussed. 

> Also in the second case the eval has been factored out of the loop
> because we're always interested in the entire value of "$action" and
> it's fractionally more efficient to do the "eval" once only.

Though it is fairly rare for label loops to run more than once.
 
Oliver


       reply	other threads:[~2003-11-14 17:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19332.1068826982@csr.com>
     [not found] ` <1031114171417.ZM2439@candle.brasslantern.com>
2003-11-14 17:52   ` Oliver Kiddle [this message]
     [not found] <20031110182013.GA20547@lorien.emufarm.org>
2003-11-10 18:40 ` Peter Stephenson

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=25469.1068832351@gmcs3.local \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@sunsite.dk \
    /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).