From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-users@sunsite.dk
Subject: Re: Functions that start Jobs
Date: Fri, 29 Jun 2001 10:26:02 +0200 (MET DST) [thread overview]
Message-ID: <200106290826.KAA04489@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <20010629010412.A1776@yahoo.com>
Gregory Margo wrote:
> ...
>
> Why does a function take up a job slot?
> And if it does, why doesn't 'exec' work?
Because no other shell can do this:
% f() { sleep 10; echo foo }
% f
^Z
zsh: 4022 suspended f
% fg
[1] + continued f
[ time passes... ]
foo
Note that it reported that it had stopped the job `f' and that the `foo'
was printed after the `sleep' finished.
With bash:
$ f() { sleep 10; echo foo; }
$ f
^Z
[1]+ Stopped sleep 10
foo
$
Ick!
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next prev parent reply other threads:[~2001-06-29 8:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-28 22:33 Gregory Margo
2001-06-29 0:07 ` Bart Schaefer
2001-06-29 8:04 ` Gregory Margo
2001-06-29 8:26 ` Sven Wischnowsky [this message]
2001-06-29 9:04 ` Vincent Lefevre
2001-06-29 9:16 ` Sven Wischnowsky
2001-06-29 16:34 ` Bart Schaefer
2001-06-29 8:30 ` Bart Schaefer
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=200106290826.KAA04489@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-users@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).