Quote:
Originally Posted by
methyl
I suspect that this is an unusual Shell and it is running a pipeline in a subshell such that the "jobs" command has lost its context.
Either that or there is more to this script and the command is in a subshell.
It's the standard FreeBSD /bin/sh, i.e. ash.
No doubt the answer lies in the source code. Still being a C noob, I gave up. But I may return to this since it has my curiousity.
I believe the Bourne shell sometimes opens double digit file descriptors instead of just 0, 1, or 2. fd 14? I've forgotten the details and I'd have to look it up again. I believe this is discussed on Sven Mascheck's site.
Is it possible the jobs builtin is using another fd? fd 10?