Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: *$var*/* and recursive globbing



On Sat, 26 Jan 2013 14:59:08 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author