[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C-z fg bg sees thru scripts to affect sleep
From: |
Dan Jacobson |
Subject: |
C-z fg bg sees thru scripts to affect sleep |
Date: |
30 Oct 2001 10:39:20 +0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
I may have discovered a massive problem with C-z and fg and bg when
dealing with sleep in scripts. As you can see from the date stamps,
it doesn't wait... to test, start the script then type C-z fg C-z bg ...
sh-2.05$ cat /tmp/bb
echo part 1
date
sleep 100
echo part 2
date
sleep 99
echo part 3
date
sh-2.05$ /tmp/bb
part 1
Tue Oct 30 10:22:30 CST 2001
[1]+ Stopped(SIGTSTP) /tmp/bb
sh-2.05$ fg
/tmp/bb
part 2
Tue Oct 30 10:22:37 CST 2001
[1]+ Stopped(SIGTSTP) /tmp/bb
sh-2.05$ bg
[1]+ /tmp/bb &
sh-2.05$ part 3
Tue Oct 30 10:22:40 CST 2001
[1]+ Done /tmp/bb
It is sort of like I used "." to invoke the script, but I didn't. Ok,
did I finally find a bug or is it just another "let's be silly in
public" of mine?
P.S. I don't really live in "CST". I need a better vanity plate for
that one, but fixing it isn't worth the bother. Well, OK, I do indeed
live in a CST but not that one. Anyway, don't deduct my coolness
points.
--
http://www.geocities.com/jidanni Tel+886-4-25854780
- C-z fg bg sees thru scripts to affect sleep,
Dan Jacobson <=