From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29677 invoked from network); 27 Aug 2005 20:45:03 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Aug 2005 20:45:03 -0000 Received: (qmail 81800 invoked from network); 27 Aug 2005 20:44:55 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Aug 2005 20:44:55 -0000 Received: (qmail 12322 invoked by alias); 27 Aug 2005 20:44:47 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9350 Received: (qmail 12313 invoked from network); 27 Aug 2005 20:44:47 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Aug 2005 20:44:47 -0000 Received: (qmail 80739 invoked from network); 27 Aug 2005 20:44:47 -0000 Received: from vms040pub.verizon.net (206.46.252.40) by a.mx.sunsite.dk with SMTP; 27 Aug 2005 20:44:43 -0000 Received: from candle.brasslantern.com ([71.116.79.190]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ILW001HFEYHH5C0@vms040.mailsrvcs.net> for zsh-users@sunsite.dk; Sat, 27 Aug 2005 15:44:42 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j7RKiegL011641 for ; Sat, 27 Aug 2005 13:44:40 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j7RKieQl011640 for zsh-users@sunsite.dk; Sat, 27 Aug 2005 13:44:40 -0700 Date: Sat, 27 Aug 2005 20:44:40 +0000 From: Bart Schaefer Subject: Re: ${i:r}-question In-reply-to: <20050826.183216.75189062.Meino.Cramer@gmx.de> To: zsh-users@sunsite.dk Message-id: <1050827204440.ZM11639@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050826.183216.75189062.Meino.Cramer@gmx.de> Comments: In reply to Meino Christian Cramer "${i:r}-question" (Aug 26, 6:32pm) 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.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Aug 26, 6:32pm, Meino Christian Cramer wrote: } } I am currently wrting a little shell script, which encapsulates the } new "arepack" addition of atool-0.31.0 (nice tool! use it! :O))). I'm glad you answered zzapper's question because I was scratching my head over why it made a difference if the bzip'd file was also tar'd. } I am wondering, whether it would possible to strip off more than one } "instance" of extension ("tar.bz2" instead of "bz2") from "$afile" You mean e.g. ${${(M)afile%%(.tar|).(7z|bz2|gz)}#.} except that you don't want to have to enumerate (7z|bz2|gz)? Otherwise I'm not clear on the question. Incidentally if it's important to know about the "tar" part, then have you considered what to do with e.g. ".tgz" files?