From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 334 invoked from network); 19 Oct 2005 00:27:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Oct 2005 00:27:50 -0000 Received: (qmail 20995 invoked from network); 19 Oct 2005 00:27:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Oct 2005 00:27:42 -0000 Received: (qmail 21316 invoked by alias); 19 Oct 2005 00:27:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9517 Received: (qmail 21304 invoked from network); 19 Oct 2005 00:27:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Oct 2005 00:27:35 -0000 Received: (qmail 19966 invoked from network); 19 Oct 2005 00:27:35 -0000 Received: from sccimhc92.asp.att.net (63.240.76.166) by a.mx.sunsite.dk with SMTP; 19 Oct 2005 00:27:33 -0000 Received: from unicorn.millertracy.com (12-221-97-207.client.insightbb.com[12.221.97.207]) by sccimhc92.asp.att.net (sccimhc92) with ESMTP id <20051019002726i920029u05e>; Wed, 19 Oct 2005 00:27:27 +0000 From: Dan Bullok To: Zsh Users Subject: Trouble with zmv and extended globs Date: Tue, 18 Oct 2005 19:27:25 -0500 User-Agent: KMail/1.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510181927.25831.dan.zsh@bullok.com> X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 I'm having some trouble with zmv. Suppose I have a bunch of python scripts in a directory, and none of them end in .py. I want to give them all a proper extension, so I try: zmv -n '(*)(#qe,file ${REPLY}|grep "python script",)' '$1.py' This works as I expected it to. However, if I have a bunch of python scripts in several subdirectories of varying depths, I try: zmv -n '(**/con*)(#qe,file ${REPLY}|grep "python script",)' '$1.py' which gives me the following error: zmv:238: bad pattern: (*/*)(#qe,file ${REPLY}|grep python,) I've also tried: zmv -n '(*/*(#qe,file ${REPLY}|grep python,))' '$1.py' which doesn't work either. I'm sure I'm missing something, because it seems like it should be possible. Can someone help me with this, please? I've been trying various permutations for over an hour, and I'm REALLY stuck. -Dan