zsh-users
 help / color / mirror / code / Atom feed
From: Hubert Canon <Hubert.Canon@irisa.fr>
To: Bart Schaefer <schaefer@candle.brasslantern.com>
Cc: zsh-users@sunsite.auc.dk
Subject: Re: strange glob expansion
Date: Fri, 3 Sep 1999 14:11:44 +0200	[thread overview]
Message-ID: <19990903141144.A4424@youkaidi.irisa.fr> (raw)
In-Reply-To: <990902150120.ZM24598@candle.brasslantern.com>

Bart Schaefer écrivait :
> On Sep 2, 12:15pm, Hubert Canon wrote:
> } Not exactly. The { , } construct is somewhat different than ( | ) :
> } for example, when one of the partterns fails, the whole expression
> } fails.
> 
> That's what `setopt cshnullglob` is for.  I can't imagine why anyone would
> not want that option when the shell is interactive; brace expansion is
> practically useless without it.

I use brace expansion with for constructs most or the time :

for i in {foo,bar,hux}; do touch $i; done

And I don't like setopt cshnullglob because it gives strange behaviour
when I use a single globbing pattern which fails. Like :

grep foo*bar | less

If foo*bar matches nothing, it's exactly like : grep | less
which stops, waiting for input.

It a matter of taste, and that's why options a for.

-- 
Hubert Canon


  parent reply	other threads:[~1999-09-03 12:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-01  8:11 Hubert Canon
1999-09-01 17:46 ` Bart Schaefer
1999-09-02 10:15   ` Hubert Canon
1999-09-02 15:01     ` Bart Schaefer
1999-09-03  2:48       ` dado
1999-09-03  4:54         ` Bart Schaefer
1999-09-03 12:11       ` Hubert Canon [this message]
1999-09-03 14:15         ` Bart Schaefer
1999-09-03 14:34           ` Hubert Canon
1999-09-03  1:40   ` Adam Spiers
1999-09-03  4:34     ` Bart Schaefer
1999-09-03  8:55       ` Peter Stephenson
1999-09-05 21:07         ` Adam Spiers

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=19990903141144.A4424@youkaidi.irisa.fr \
    --to=hubert.canon@irisa.fr \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-users@sunsite.auc.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).