On Jul 19, 2009, at 2:01 PM, Francisco J Ballesteros wrote:
Bescause consumers produce pipeline results why
producers do not?
ls | wc > /tmp/nfiles
I want nfiles to be ok.
however
ls | date
should probably let ls die as soon as date completes
True. However, you'd get the same result if write on a broken
pipe would return -1 (and set a error condition) and the
applications were paying attention (and I'm pretty sure all
applications on Plan 9 would do a reasonable thing when
presented with -1 from a write).
Thanks,
Roman.