Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Odd job-reporting buglet (Re: Change in suspend behavior)
- X-seq: zsh-workers 14309
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Odd job-reporting buglet (Re: Change in suspend behavior)
- Date: Fri, 11 May 2001 04:21:48 +0000
- In-reply-to: <010510153513.ZM24266@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010510195228.018E6DCC4@xxxxxxxxxxxxxxxxx> <010510153513.ZM24266@xxxxxxxxxxxxxxxxxxxxxxx>
On May 10, 3:35pm, Bart Schaefer wrote:
}
} for i in bar foo; do mycmd $i & done; wait; fg
}
} The "wait" is just there to be sure that all the jobs have a chance to
} start up (and then stop again on SIGTTOU or SIGTTIN) before the "fg"
} is executed.
Change that loop just a little bit and some really strange things happen:
schaefer[501] for i in bar foo; do cat & wait; done
[2] 27451
[2] + suspended (tty input) cat
[1] 27452
[1] + suspended (tty input) cat
zsh: suspended (tty input) cat |
zsh: running for i in bar foo; do; cat & wait; done
Eh? It thinks "cat" has been piped to the for loop! Also, how did job
number 2 get a smaller process ID than job number 1?
schaefer[502] jobs -l
[1] + 27452 suspended (tty input) cat |
27453 running for i in bar foo; do; cat & wait; done
[2] - 27451 suspended (tty input) cat
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author