Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Recursive globbing
- X-seq: zsh-users 7460
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Recursive globbing
- Date: Mon, 17 May 2004 17:06:23 +0200
- In-reply-to: <Pine.LNX.4.44.0405140907060.9308-100000@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <232.1084532088@xxxxxxx> <Pine.LNX.4.44.0405140907060.9308-100000@xxxxxxxxxxxxxxxxxx>
- Sender: Vincent Lefevre <vincent@xxxxxxxxxx>
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@xxxxxxxxxx> - 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author