All of lore.kernel.org
 help / color / mirror / Atom feed
* jobs in scripts?
@ 2011-03-08 19:02 Dan Muresan
  2011-03-09 22:54 ` Jilles Tjoelker
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Muresan @ 2011-03-08 19:02 UTC (permalink / raw)
  To: dash

Hi, is the following normal? With set -m the problem disappears; bash
& ksh don't need set -m.

SUSv3 doesn't say job control is to be disabled completely unless "set
-m" is active. And, if job control *is* disabled, why does "job"
report a non-empty list?

0.5.5.1-3ubuntu2 on Ubuntu 10.04 here.

---

$ cat x
#set -m
sleep 100 &
echo "Before kill:"; jobs -l
kill -s TERM %1
sleep 0.5
echo "After kill:"; jobs -l
pidof sleep



$ dash x
Before kill:
[1] + 18775 Running
kill: 4: No such process

After kill:
[1] + 18775 Running
18775


-- Dan

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

end of thread, other threads:[~2011-03-09 23:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-08 19:02 jobs in scripts? Dan Muresan
2011-03-09 22:54 ` Jilles Tjoelker
2011-03-09 23:52   ` Dan Muresan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.