Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Intercepting commands before they're run
- X-seq: zsh-workers 10744
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Intercepting commands before they're run
- Date: Thu, 13 Apr 2000 18:59:04 +0100
- In-reply-to: "Your message of Thu, 13 Apr 2000 16:21:20 -0000." <1000413162121.ZM17034@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> } [...] maybe we should let preexec return an exit code to say the command
> } should not be run [...]
>
> I think I suggested that at one point, but I don't recall whether there
> was any discussion.
My worry about this (and similar schemes with hooks) is that it's a little
bit too easy for the user to get into a state where the shell won't do
anything at all. Aside from that it's a reasonable idea and wouldn't take
much writing.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author