From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4535 invoked from network); 13 Aug 2003 15:15:18 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Aug 2003 15:15:18 -0000 Received: (qmail 10726 invoked by alias); 13 Aug 2003 15:15:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6464 Received: (qmail 10715 invoked from network); 13 Aug 2003 15:15:05 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Aug 2003 15:15:05 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [195.245.230.51] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Aug 2003 15:15:3 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-5.tower-33.messagelabs.com!1060787701!100513 X-StarScan-Version: 5.0.7; banners=-,-,- Received: (qmail 13971 invoked from network); 13 Aug 2003 15:15:01 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-5.tower-33.messagelabs.com with SMTP; 13 Aug 2003 15:15:01 -0000 Received: from gmcs3.local ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id h7DFF03l012624; Wed, 13 Aug 2003 16:15:01 +0100 Received: from gmcs3.local (localhost [127.0.0.1]) by gmcs3.local (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h7DFGgJ13662; Wed, 13 Aug 2003 17:16:43 +0200 cc: Zsh Users X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20030813131429.GA2413@fruitcom.com> From: Oliver Kiddle References: <20030813131429.GA2413@fruitcom.com> To: Eric Smith Subject: Re: preexec function to work after `&&' Date: Wed, 13 Aug 2003 17:16:42 +0200 Message-ID: <13660.1060787802@gmcs3.local> Eric Smith wrote: > This mime type like preexec makes life a lot more convenient > (for me anyways) by automatically launching the given file > with the associated application - but it don't work in a compound command > like sleep 1 && some.pdf (or whatever the file happens to be). > > How might I fix this? With difficulty. Don't think you can. I use something similar for mhshow. Other problem with this scheme is that correction doesn't know about it. Perhaps we should allow a special form of aliases to be patterns. > And while you are at it (if you are), how could I introduce case insensitivity > on the suffixes. Put (#i) before the file patterns Oliver