PERL PERL5 PORTERS 36 RE WHY DOES ZSH HATE PERL OR VICE VERSA
Date: Sat, 19 Feb 2005 15:48:18 -0500

Subject: Re: why does zsh hate Perl, or vice versa?
From: rick@no-spam (Rick Delaney)

On Sat, Feb 19, 2005 at 09:43:50AM -0800, Randal L. Schwartz wrote:
> > 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?

Probably zsh; I don't see that. Does the same thing happen for you from a shell script? What does setopt show?

-- Rick Delaney rick@no-spam

Date: Sun, 20 Feb 2005 01:54:02 +0200

Subject: Re: why does zsh hate Perl, or vice versa?
From: nothingmuch@no-spam (Yuval Kogman)
On Sat, Feb 19, 2005 at 16:20:21 -0500, Garry Williams wrote:

> I can't reproduce this with zsh 4.2.0 on Mandrake 10.1 (perl v5.8.5
> built for i386-linux-thread-multi) or zsh 3.1.9 on Solaris 8 (perl > v5.8.6 built for sun4-solaris).

I can reproduce it on macosx with bleadperl and zsh --version eq "zsh 4.1.1 (powerpc-apple-darwin7.0)".

--=20
() Yuval Kogman <nothingmuch@no-spam> 0xEBD27418 perl hacker &
/\ kung foo master: /me kicks %s on the nose: neeyah!!!!!!!!!!!!!!!!!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCF9GaVCwRwOvSdBgRAj3RAJ9FMkJD1R9qzK+Kk1Hv7a0Abk0odQCeJJcc /YNiVeYrVB/lxTP4j5HLi7w=
=hLEx -----END PGP SIGNATURE-----


Date: Sat, 5 Mar 2005 22:44:45 +0300

Subject: Re: why does zsh hate Perl, or vice versa?
From: at@no-spam (Alexey Tourbin)
On Sat, Feb 19, 2005 at 09:43:50AM -0800, Randal L. Schwartz wrote:
> Is it a problem with zsh, or system(), or some complex interaction?

----- Forwarded message from Philippe Troin <phil@no-spam> -----

Date: 04 Mar 2005 22:04:50 -0800

From: Philippe Troin (phil@no-spam)
Subject: Re: Fwd: why does zsh hate Perl, or vice versa?
To: Alexey Tourbin <at@no-spam>
Cc: zsh-workers@no-spam Message-ID: <87u0nqbpbx.fsf@no-spam>
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Alexey Tourbin <at@no-spam> writes:
[...]
> 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.

----- End forwarded message -----

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCKgwtfBKgtDjnu0YRAj5BAJ0ed7lgq5jRXjF/cGu3XLCLx14k0ACgnAh0
9VZMerv6TNu+FbL99Pz/HOo=
=GNSK -----END PGP SIGNATURE-----