Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Some problems with recursive globbing
- X-seq: zsh-users 20196
- From: Jesper Nygårds <jesper.nygards@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Some problems with recursive globbing
- Date: Fri, 8 May 2015 12:34:08 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=N5avCeIFk3So8MKi+WgTK9fBa8rQuTdN4ScLx6d4G0M=; b=iyIFyUYD47GwP1M6mk5sLdClFDpfGwhv27pzQWpwbSXP1C26OM21qI+UnUHKaaPT9S oCS/OxvzZiPP4TJVixZqVe1BtWTUpm1afPUtOZ6FXNcZ74yS7UgHSu9arRG+zLUDLvDV gfGY82MK+FXsfD+O5eFJw8YsaRA9+K18ipkhBOnJo3+O5EY37AZNnbw4fzAv64P2OIf4 PSx+VbOndPxSg2JgIRUwJ7mptAuQhdPyE49gHUNrObeqsQ8L1vlW5bnBzyG0r3xkgGR8 G42BvKbfADla1ULz4AaDeMcgHQAoi3EWPgPsmLSsO/HFohFTDGAr2StZKZSCVDBdgbDt dcaw==
- In-reply-to: <20150508094038.5bc52b67@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABZhJg-f_PDTtaJf8Fg6qVZQ2wLmAXG-tLXLub7Sq=GW9vXwDA@mail.gmail.com> <20150507165250.18184e1a@pwslap01u.europe.root.pri> <20150507165953.517b95b9@pwslap01u.europe.root.pri> <CABZhJg_2uhT-c1Gn+e+=ng3o4L=P8LJRZukjF3T7LqwiGL1OHQ@mail.gmail.com> <20150507180045.0afc79fd@pwslap01u.europe.root.pri> <CABZhJg8xzCNeTNRks2HV8AXTe_Vj9Sf=N3wrOg--kG+uwZWuwg@mail.gmail.com> <CABZhJg9h6_ZefdUzOF2r7rBjo8xz9NZ4x6bYf-GVZ5KJBs2=sA@mail.gmail.com> <20150508094038.5bc52b67@pwslap01u.europe.root.pri>
Thank you for all the help, Peter.
On Fri, May 8, 2015 at 10:40 AM, Peter Stephenson <p.stephenson@xxxxxxxxxxx>
wrote:
> On Fri, 8 May 2015 05:37:59 +0200
> Jesper Nygårds <jesper.nygards@xxxxxxxxx> wrote:
> > I found a solution to my particular problem. I can quote the dir, and
> then
> > remove the quoting of the spaces afterwards.
>
> Yes, or the other approach is quote only the metacharacters (which don't
> include space) in the first place. I think there may be some examples
> lying around using ${...//.../...}. Oh, yes, here's one from _rm:
>
> ${line//(#m)[\[\]()\\*?#<>~\^\|]/\\$MATCH}
>
> It would be overall simpler not to pass the pattern and a fixed string
> around in the same variable, involving a bit of structural change.
>
> pws
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author