zsh-workers
 help / color / mirror / code / Atom feed
From: Philippe Troin <phil@fifi.org>
To: Alexey Tourbin <at@altlinux.ru>
Cc: zsh-workers@sunsite.dk
Subject: Re: Fwd: why does zsh hate Perl, or vice versa?
Date: 04 Mar 2005 22:04:50 -0800	[thread overview]
Message-ID: <87u0nqbpbx.fsf@ceramic.fifi.org> (raw)
In-Reply-To: <20050305045117.GJ16875@solemn.turbinal.org>

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.


      reply	other threads:[~2005-03-05  7:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-05  4:51 Alexey Tourbin
2005-03-05  6:04 ` Philippe Troin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87u0nqbpbx.fsf@ceramic.fifi.org \
    --to=phil@fifi.org \
    --cc=at@altlinux.ru \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).