zsh-users
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.org>
To: zsh-users@sunsite.dk
Subject: Re: Recursive globbing
Date: Mon, 17 May 2004 17:06:23 +0200	[thread overview]
Message-ID: <20040517150623.GG7161@ay.vinc17.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0405140907060.9308-100000@toltec.zanshin.com>

On 2004-05-14 09:10:13 -0700, Bart Schaefer wrote:
> 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.

Then there's a problem with **/ :

  foo='*'
  print ${~foo}*/

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17,
Championnat International des Jeux Mathématiques et Logiques, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


  parent reply	other threads:[~2004-05-17 19:14 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
2004-05-14 16:22     ` Peter Stephenson
2004-05-14 16:35       ` Peter Stephenson
2004-05-17 15:06     ` Vincent Lefevre [this message]
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=20040517150623.GG7161@ay.vinc17.org \
    --to=vincent@vinc17.org \
    --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).