[Pkg-zsh-devel] Bug#660630: Bug#660630: zsh: suspend (^Z) behavior while a function is running is unclear

Vincent Lefevre vincent at vinc17.net
Mon Feb 20 14:07:23 UTC 2012


On 2012-02-20 14:37:51 +0100, Axel Beckert wrote:
> Hi,
> 
> just some _opinion_ on this issue.
> 
> Vincent Lefevre wrote:
> > With zsh, the whole function is suspended.
> 
> That's actually what I would expect from any shell function I call
> from the commandline. Everything else causes undetermined behaviour
> and is annoying. (Or said otherwise: Yet another reason to use zsh.
> It's a feature, not a bug! :-)

Well, suspending the whole function also causes undetermined behavior
in case it is intended to modify the shell environment.

I think there are two possibilities that avoid such a problem:
1. Suspend the whole shell.
2. Ignore the TSTP signal (temporarily or completely).

Possibly, when receiving a TSTP signal, if interactive, zsh could
give the choice between several behaviors.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)





More information about the Pkg-zsh-devel mailing list