From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3581 invoked by alias); 7 May 2015 16:47:06 -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: 20189 Received: (qmail 3669 invoked from network); 7 May 2015 16:47:04 -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=dR2pJEhS19pbMXD3IVq0xmG7rQ28rImdzOL1ZgVoS5o=; b=yz2Egaqk+YCo6UCIblylfwlUnSl7CwmIdlOw26O6ySQte2zEUxkG1K1hihNoKE/Bg+ 5DO2esgVxwzKdYCc1jN4A9bA0JzUjraA0WC7mruCx6U14jSVwp8eyGJow0AnjO2EfxQK AkOMarG/NyGiEdoOAFClcmgf7J8Bz6cau6QB2aIisTLkItisJQbvkMEMKJ+C1Ok41AMq TOJcsrCYFHIBp6kd8/br0/D+qym2MyWEmbScVXq2BELZMsjLKV2hFwIwVh4Qle4JpT1o bMhLGQ8KDVCocumJH6MMbufI2YNaQ7081jXkb2cKd4zpgGJlSeAZDuGE9TiMGuXvvCY1 tnaA== MIME-Version: 1.0 X-Received: by 10.112.142.232 with SMTP id rz8mr3676425lbb.74.1431017218517; Thu, 07 May 2015 09:46:58 -0700 (PDT) In-Reply-To: <20150507165953.517b95b9@pwslap01u.europe.root.pri> References: <20150507165250.18184e1a@pwslap01u.europe.root.pri> <20150507165953.517b95b9@pwslap01u.europe.root.pri> Date: Thu, 7 May 2015 18:46:58 +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=089e0112cdfefa2ef3051580a84e --089e0112cdfefa2ef3051580a84e Content-Type: text/plain; charset=UTF-8 Hmm, I still can't get this to work. I tried this: myfiles() { emulate -L zsh setopt LOCAL_OPTIONS EXTENDED_GLOB local dir="${1:a}/" local filepattern="${dir}**/*" print -c ${~filepattern} } % cd /private/tmp/test\(1\) % myfiles src myfiles:8: no matches found: /private/tmp/test(1)/src/**/* And then this: myfiles() { emulate -L zsh setopt LOCAL_OPTIONS EXTENDED_GLOB local dir="${(q)1:a}/" local filepattern="${dir}**/*" print -c ${~filepattern} } % cd /private/tmp/test\ 1 % myfiles src myfiles:8: no matches found: /private/tmp/test\ 1/src/**/* So it still fails on either parentheses or spaces, depending on if I quote the parameter. --089e0112cdfefa2ef3051580a84e--