Date: Sat, 2 Oct 2004 03:00:42 GMT From: <kerochan2@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/34811: sh: "jobs" is not pipeable Message-ID: <200410020300.i9230gC5053789@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/34811; it has been noted by GNATS.
From: <kerochan2@gmail.com>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:
Subject: Re: bin/34811: sh: "jobs" is not pipeable
Date: Sat, 2 Oct 2004 02:53:31 +0000 (GMT)
The standard behaviour is this:
faber $ (sleep 10 & jobs | cat)
[1]+ Running sleep 10 &
faber $ (sleep 10 & jobs | grep '.')
[1]+ Running sleep 10 &
Commands inside () are forced into a subshell;
sleep 10 is then started in the background;
jobs is a shell builtin, but it's output must still be pipable;
AND IT IS!
Does the sequence "(sleep 10 & jobs | cat)" produce output at you?
[It should.]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410020300.i9230gC5053789>
