From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25480 invoked by alias); 8 May 2015 08:41:05 -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: 20195 Received: (qmail 20005 invoked from network); 8 May 2015 08:41:03 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-f79c56d0000012ee-ff-554c769ae1f5 Date: Fri, 08 May 2015 09:40:38 +0100 From: Peter Stephenson To: Zsh Users Subject: Re: Some problems with recursive globbing Message-id: <20150508094038.5bc52b67@pwslap01u.europe.root.pri> In-reply-to: References: <20150507165250.18184e1a@pwslap01u.europe.root.pri> <20150507165953.517b95b9@pwslap01u.europe.root.pri> <20150507180045.0afc79fd@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsVy+t/xy7qzynxCDVZ8k7LYcXIlowOjx6qD H5gCGKO4bFJSczLLUov07RK4MqY8+M5U8Jml4nFfF3sD41/mLkZODgkBE4nuT5uYIGwxiQv3 1rOB2EICSxkl9s9U72LkArKnMUmc+rWPFcLZyigxc2kjK0gVi4CqxKTvuxhBbDYBQ4mpm2aD 2SICihJnfn0DmsrBISxgJLFoSQBImFfAXmLh9x52EJtTIFji34nPjBAzTzJLrH+3G+wKfgF9 iat/P0FdZC8x88oZRohmQYkfk++xgNjMAuoSk+YtYoawtSWevLvACnG1usSNu7vZJzAKzULS MgtJyywkLQsYmVcxiqaWJhcUJ6XnGuoVJ+YWl+al6yXn525ihATtlx2Mi49ZHWIU4GBU4uFd YecdKsSaWFZcmXuIUYKDWUmE11zNJ1SINyWxsiq1KD++qDQntfgQozQHi5I479xd70OEBNIT S1KzU1MLUotgskwcnFINjGyP6i79CrntMHlh7/J9wk9trqcfU4q6NVfV9uZi403LpQUnhcr5 bZn68Qlj3osrPpt38VQssMixvbc5T/kco2baPFFHBv+nk+bMvVW04UHLkckWXCfnNm1K51nq G5aeWL7t24uaAr2TDBWP8lQv3Okt+XyHx5Z35bstQlVTilOnFxuEqXwtf6rEUpyRaKjFXFSc CAAfAODrVgIAAA== 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