From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26128 invoked by alias); 8 May 2015 10:34:16 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20196 Received: (qmail 736 invoked from network); 8 May 2015 10:34:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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== MIME-Version: 1.0 X-Received: by 10.112.72.132 with SMTP id d4mr2389353lbv.1.1431081248665; Fri, 08 May 2015 03:34:08 -0700 (PDT) In-Reply-To: <20150508094038.5bc52b67@pwslap01u.europe.root.pri> References: <20150507165250.18184e1a@pwslap01u.europe.root.pri> <20150507165953.517b95b9@pwslap01u.europe.root.pri> <20150507180045.0afc79fd@pwslap01u.europe.root.pri> <20150508094038.5bc52b67@pwslap01u.europe.root.pri> Date: Fri, 8 May 2015 12:34:08 +0200 Message-ID: Subject: Re: Some problems with recursive globbing From: =?UTF-8?Q?Jesper_Nyg=C3=A5rds?= To: Zsh Users Content-Type: multipart/alternative; boundary=001a11c23f6478b68105158f9160 --001a11c23f6478b68105158f9160 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you for all the help, Peter. On Fri, May 8, 2015 at 10:40 AM, Peter Stephenson wrote: > On Fri, 8 May 2015 05:37:59 +0200 > Jesper Nyg=C3=A5rds 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 > --001a11c23f6478b68105158f9160--