Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 4.2.0 released
- X-seq: zsh-users 7201
- From: Lloyd Zusman <ljz@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: 4.2.0 released
- Date: Fri, 19 Mar 2004 11:45:20 -0500
- Cancel-lock: sha1:5pxI1f/3jSK+OtSYwyiao7bZ9XI=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <25759.1079696217@xxxxxxx> <1040319154111.ZM11525@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author