From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27530 invoked from network); 19 Mar 2004 17:01:07 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Mar 2004 17:01:07 -0000 Received: (qmail 10211 invoked by alias); 19 Mar 2004 17:00:48 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7201 Received: (qmail 10199 invoked from network); 19 Mar 2004 17:00:47 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 19 Mar 2004 17:00:47 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 19 Mar 2004 17:0:46 -0000 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B4NMT-0001Jz-00 for ; Fri, 19 Mar 2004 18:00:45 +0100 Received: from hippo.asfast.com ([216.182.10.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Mar 2004 18:00:45 +0100 Received: from ljz by hippo.asfast.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Mar 2004 18:00:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Lloyd Zusman Subject: Re: 4.2.0 released Date: Fri, 19 Mar 2004 11:45:20 -0500 Message-ID: References: <25759.1079696217@csr.com> <1040319154111.ZM11525@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: hippo.asfast.com User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:5pxI1f/3jSK+OtSYwyiao7bZ9XI= Sender: news Bart Schaefer writes: > Assorted thoughts ... > > On Mar 19, 11:36am, Peter Stephenson wrote: > } > } - Suffix aliases allow the shell to run a command on a file by suffix, > } e.g `alias -s ps=gv' makes `foo.ps' execute `gv foo.ps'. Supplied > } function zsh-mime-setup uses existing mailcap and mime.types files > } to set up suitable aliases. > > Reading that, I wonder ... why did we do this with suffixes? Why not be > Unix-like rather than DOS-like: check /etc/magic on any file that the OS > fails to execute, and choose the command based on that? ... or perhaps to rely on a regex match on the file name, instead of either a suffix or /etc/magic. > Of course that would have required a module. Would it require a module simply if it's a regex match? > [ ... ] -- Lloyd Zusman ljz@asfast.com