Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Fwd: why does zsh hate Perl, or vice versa?



Alexey Tourbin <at@xxxxxxxxxxx> writes:

> JFYI
> 
> ----- Forwarded message from "Randal L. Schwartz" <merlyn@xxxxxxxxxxxxxx> -----
> 
> Date: 19 Feb 2005 09:43:50 -0800
> From: merlyn@xxxxxxxxxxxxxx (Randal L. Schwartz)
> Subject: why does zsh hate Perl, or vice versa?
> To: perl5-porters@xxxxxxxx
> Message-ID: <861xbc30o9.fsf@xxxxxxxxxxxxxxxxxxx>
> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
> 
> 
> system("zsh") fires up a child zsh just fine.  But when
> the zsh exits, the Perl process is suspended!
> 
> Repeat by:
> 
> prompt$ perl
> print "one: "; <STDIN>;
> system "zsh";
> print "two: "; <STDIN>;
> ^D
> one: foo                <<<=== I typed "foo"
> subprompt$ date         <<<=== this is the subshell
> Sat Feb 19 09:39:19 PST 2005
> subprompt$ exit
> two: zsh: suspended (tty input)  perl
> prompt$ fg              <<<=== note we came back to outer shell prompt!
> [1]  + continued  perl
> bar                     <<<=== note the print worked, wasn't hung until read
> prompt$
> 
> Is it a problem with zsh, or system(), or some complex interaction?

This was an old bug (zsh forgot to reset the original tty foreground
process group after having created its own process group), it is fixed
in current CVS and I believe in 4.2.0.

Phil.



Messages sorted by: Reverse Date, Date, Thread, Author