On 2/15/19 10:40 PM, Assaf Gordon wrote: >> $ seq 9999 | env --default-signal PIPE sort -n | sed 5q | wc -l >> 5 > > That is a nice idea, I could've used it myself couple of times. > > Attached a suggested patch. > If this seems like a good direction, I'll complete it with NEWS/docs/etc.
> src/env.c | 90 > +++++++++++++++++++++++++++++++++++++++- That's quite a lot of new code. What about a new program ... quick shot (and maybe an unlucky name): 'trap' ? Have a nice day, Berny