zsh-users
 help / color / mirror / code / Atom feed
* zsh script and SIGCONT
@ 1999-12-12 10:10 Danny Dulai
  1999-12-12 10:12 ` Danny Dulai
  0 siblings, 1 reply; 5+ messages in thread
From: Danny Dulai @ 1999-12-12 10:10 UTC (permalink / raw)
  To: zsh-users

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


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

end of thread, other threads:[~1999-12-12 12:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-12 10:10 zsh script and SIGCONT Danny Dulai
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

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