zsh-users
 help / color / mirror / code / Atom feed
From: nirva@ishiboo.com (Danny Dulai)
To: zsh-users@sunsite.auc.dk
Subject: zsh script and SIGCONT
Date: 12 Dec 1999 10:10:36 -0000	[thread overview]
Message-ID: <Liam.944993436.40099.10250.9891904@fizz> (raw)

put the following into a file and run it "zsh scriptname"

while :; do 
   echo helu
   sleep 1
done


run that script, hit ^Z, and then put into foreground again.. why does it
exit the while loop (thus causing the script to exit)?

This works fine in bash:

(~) % bash p
helu
helu

zsh: 28123 suspended  bash p
(~) % fg
[3]    continued  bash p
helu
helu


but in zsh:

(~) % zsh p 
helu
helu

zsh: 28129 suspended  zsh p
(~) % fg
[3]    continued  zsh p
(~) % echo $?
0



-- 
___________________________________________________________________________
Danny Dulai                                           Feet. Pumice. Lotion.
http://www.ishiboo.com/~nirva/                            nirva@ishiboo.com


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

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-12 10:10 Danny Dulai [this message]
1999-12-12 10:12 ` Danny Dulai
1999-12-12 10:51   ` Andrej Borsenkow
1999-12-12 11:50     ` Danny Dulai
1999-12-12 12:03       ` Andrej Borsenkow

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=Liam.944993436.40099.10250.9891904@fizz \
    --to=nirva@ishiboo.com \
    --cc=zsh-users@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).