Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: command-not-found handler
- X-seq: zsh-users 11609
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: command-not-found handler
- Date: Wed, 11 Jul 2007 11:25:12 +0100
- In-reply-to: <f36b08ee0707110152m7f7b7215j364d469209793c27@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <f36b08ee0707110152m7f7b7215j364d469209793c27@xxxxxxxxxxxxxx>
On Tue, 10 Jul 2007 21:52:23 -1100
"Yakov Lerner" <iler.ml@xxxxxxxxx> wrote:
> How do I handle the "command not found" event with my own function.
> Like bash's command_not_found_handle().
There's no direct way of doing this; you have to intercept whatever it is
you're trying to do earlier on. (If such a command was added it would be
in a subshell forked to run the command; I'm not sure if that would be good
enough.)
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
Messages sorted by:
Reverse Date,
Date,
Thread,
Author