zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: *$var*/* and recursive globbing
Date: Sun, 27 Jan 2013 19:04:21 +0000	[thread overview]
Message-ID: <20130127190421.30b8e436@pws-pc.ntlworld.com> (raw)
In-Reply-To: <130126145908.ZM30328@torch.brasslantern.com>

On Sat, 26 Jan 2013 14:59:08 -0800
Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Jan 26, 10:25pm, Stephane Chazelas wrote:
> } Subject: *$var*/* and recursive globbing
> }
> } *"$var"*/* where $var is empty, expands like **/*
> } 
> } I would be of the opinion that **/ (and ***/) should recurse only when
> } entered as is (or at least the two stars entered as is).
> 
> I tend to agree, but I suspect it's impossible without making ** and ***
> into lexical tokens, which might have other unintended consequences (not
> to mention a significant ripple effect through the globbing code, turning
> this into potentially a large change).

Possibly, though it ought to be doable.

It might also be possible to delay remnulargs(), though it looks like
there are earlier forms of expansion that depend on it, so it doesn't
look very hopeful.

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


      reply	other threads:[~2013-01-27 19:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-26 22:25 Stephane Chazelas
2013-01-26 22:59 ` Bart Schaefer
2013-01-27 19:04   ` Peter Stephenson [this message]

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=20130127190421.30b8e436@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.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).