bin/34811: sh: "jobs" is not pipeable

kerochan2 at gmail.com kerochan2 at gmail.com
Fri Oct 1 20:00:42 PDT 2004


The following reply was made to PR bin/34811; it has been noted by GNATS.

From: <kerochan2 at gmail.com>
To: <freebsd-gnats-submit at 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.]


More information about the freebsd-bugs mailing list