zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <zefram@fysh.org>
To: schaefer@candle.brasslantern.com (Bart Schaefer)
Cc: zsh-workers@sunsite.auc.dk, nirva@ishiboo.com
Subject: Re: PATCH (and another bug report): Re: zsh script and SIGCONT
Date: Mon, 13 Dec 1999 10:25:16 +0000 (GMT)	[thread overview]
Message-ID: <E11xSfM-0001QA-00@crucigera.fysh.org> (raw)
In-Reply-To: <991212200800.ZM8901@candle.brasslantern.com> from Bart Schaefer at "Dec 12, 1999  8: 7:59 pm"

Bart Schaefer wrote:
>Even worse than this ... if you read the script with ". p2", then ^Z only
>stops the "sleep 1" and the loop keeps going.  All three cases ought to
>behave the same as executing the loop at the top-level prompt.

They can't.  A while loop requested in the current shell *can't* be
backgrounded after being started, any more than you could background
a builtin.  The loop has to be able to affect shell variables and so
on, which means it has to execute in tthe shell process.  Of course,
if it's explicitly backgrounded when started, that's a different matter.

-zefram


  reply	other threads:[~1999-12-13 10:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Liam.944999422.929800.796.1038708749@fizz>
1999-12-12 20:07 ` Bart Schaefer
1999-12-13 10:25   ` Zefram [this message]
1999-12-13 11:00     ` Sven Wischnowsky
1999-12-13 17:42       ` Bart Schaefer
1999-12-14  9:13 Sven Wischnowsky
1999-12-15 17:30 ` Bart Schaefer
1999-12-14 13:21 Sven Wischnowsky

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=E11xSfM-0001QA-00@crucigera.fysh.org \
    --to=zefram@fysh.org \
    --cc=nirva@ishiboo.com \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.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).