zsh-workers
 help / color / mirror / code / Atom feed
* Fwd: why does zsh hate Perl, or vice versa?
@ 2005-03-05  4:51 Alexey Tourbin
  2005-03-05  6:04 ` Philippe Troin
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Tourbin @ 2005-03-05  4:51 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 5758 bytes --]

JFYI

----- Forwarded message from "Randal L. Schwartz" <merlyn@stonehenge.com> -----

Date: 19 Feb 2005 09:43:50 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: why does zsh hate Perl, or vice versa?
To: perl5-porters@perl.org
Message-ID: <861xbc30o9.fsf@blue.stonehenge.com>
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?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

----- End forwarded message -----
----- Forwarded message from Rick Delaney <rick@bort.ca> -----

Date: Sat, 19 Feb 2005 15:48:18 -0500
From: Rick Delaney <rick@bort.ca>
Subject: Re: why does zsh hate Perl, or vice versa?
To: "Randal L. Schwartz" <merlyn@stonehenge.com>
Cc: perl5-porters@perl.org
Message-ID: <20050219204818.GA11928@biff.bort.ca>
User-Agent: Mutt/1.3.28i

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@bort.ca

----- End forwarded message -----
----- Forwarded message from Garry Williams <garry@zvolve.com> -----

Date: Sat, 19 Feb 2005 16:20:21 -0500
From: Garry Williams <garry@zvolve.com>
Subject: Re: why does zsh hate Perl, or vice versa?
To: Rick Delaney <rick@bort.ca>
Cc: "Randal L. Schwartz" <merlyn@stonehenge.com>,
	perl5-porters@perl.org
Message-Id: <1108848021.27563.8.camel@tfr>
Organization: Zvolve Systems, Inc.
X-Mailer: Evolution 2.0.1-1mdk 

On Sat, 2005-02-19 at 15:48 -0500, Rick Delaney wrote:
> On Sat, Feb 19, 2005 at 09:43:50AM -0800, Randal L. Schwartz wrote:

[snip]

> > 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?

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).

-- 
Garry Williams, Zvolve Systems, Inc., +1 770 813-4934
                                Cell: +1 404 353-2983

----- End forwarded message -----
----- Forwarded message from Yuval Kogman <nothingmuch@woobling.org> -----

Date: Sun, 20 Feb 2005 01:54:02 +0200
From: Yuval Kogman <nothingmuch@woobling.org>
Subject: Re: why does zsh hate Perl, or vice versa?
To: Garry Williams <garry@zvolve.com>
Cc: Rick Delaney <rick@bort.ca>,
	"Randal L. Schwartz" <merlyn@stonehenge.com>, perl5-porters@perl.org
Message-ID: <20050219235402.GB32140@woobling.org>
User-Agent: Mutt/1.5.6i

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)".

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




----- End forwarded message -----
----- Forwarded message from "Randal L. Schwartz" <merlyn@stonehenge.com> -----

Date: 19 Feb 2005 16:05:38 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: why does zsh hate Perl, or vice versa?
To: Yuval Kogman <nothingmuch@woobling.org>
Cc: Garry Williams <garry@zvolve.com>, Rick Delaney <rick@bort.ca>,
	perl5-porters@perl.org
Message-ID: <861xbcw0x9.fsf@blue.stonehenge.com>
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

>>>>> "Yuval" == Yuval Kogman <nothingmuch@woobling.org> writes:

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

Ahh, didn't know the platform would be the problem.

Yes, this is OSX.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fwd: why does zsh hate Perl, or vice versa?
  2005-03-05  4:51 Fwd: why does zsh hate Perl, or vice versa? Alexey Tourbin
@ 2005-03-05  6:04 ` Philippe Troin
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Troin @ 2005-03-05  6:04 UTC (permalink / raw)
  To: Alexey Tourbin; +Cc: zsh-workers

Alexey Tourbin <at@altlinux.ru> writes:

> JFYI
> 
> ----- Forwarded message from "Randal L. Schwartz" <merlyn@stonehenge.com> -----
> 
> Date: 19 Feb 2005 09:43:50 -0800
> From: merlyn@stonehenge.com (Randal L. Schwartz)
> Subject: why does zsh hate Perl, or vice versa?
> To: perl5-porters@perl.org
> Message-ID: <861xbc30o9.fsf@blue.stonehenge.com>
> 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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-05  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-05  4:51 Fwd: why does zsh hate Perl, or vice versa? Alexey Tourbin
2005-03-05  6:04 ` Philippe Troin

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).