zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-users@sunsite.dk
Subject: Re: Recursive globbing
Date: Fri, 14 May 2004 09:10:13 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0405140907060.9308-100000@toltec.zanshin.com> (raw)
In-Reply-To: <232.1084532088@csr.com>

On Fri, 14 May 2004, Peter Stephenson wrote:

> > Is there any difference between *.tex and **.tex ?
> 
> No, and in fact they are documented to be the same.  Hence...
>
> > how about having improved recursive globbing, where ** not followed
> > by a slash would mean **/* (ditto for *** -> ***/*)?
> 
> I can't see any problem with this

No; please please don't do this.  Consider:

	foo='x*'

	print ${~foo}*

Or

	bar="$foo*"
	print $~bar

Completely unexpected results.

Also it seriously breaks sh compatibility, so at the very least it should
be disabled when SH_GLOB or similar options are in effect.

There's a reason that only **/ and not blather**/ is special.


  reply	other threads:[~2004-05-15  1:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-14 10:25 Vincent Lefevre
2004-05-14 10:54 ` Peter Stephenson
2004-05-14 16:10   ` Bart Schaefer [this message]
2004-05-14 16:22     ` Peter Stephenson
2004-05-14 16:35       ` Peter Stephenson
2004-05-17 15:06     ` Vincent Lefevre
2004-05-16 21:34 ` parameter type differences? S. Cowles
2004-05-16 22:02   ` Wayne Davison

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=Pine.LNX.4.44.0405140907060.9308-100000@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --cc=pws@csr.com \
    --cc=zsh-users@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).