[Bug 483] New: Allow jobs builtin to pipe output to current shell

bugzilla at busybox.net bugzilla at busybox.net
Thu Jul 23 05:41:16 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=483

           Summary: Allow jobs builtin to pipe output to current shell
           Product: Busybox
           Version: 1.14.x
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: earl_chew at agilent.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


This change allows $(jobs -p) to work.

Some references:

http://kb.iu.edu/data/aegh.html
http://lists.freebsd.org/pipermail/freebsd-bugs/2009-April/034763.html

With this change, the following:


ls | date | sleep 30 &
jobs
jobs -p
jobs -l
jobs -pl

echo Test 1 ; jobs -p | cat
echo Test 2 ; date | jobs -p | cat
echo Test 3 ; X=$(jobs -p) ; echo "$X"
echo Test 4
for X in `jobs -p` ; do
  echo "$X"
done


produces the output:

[1] + Running                    ls | date | sleep 30
8257
[1] + 8257 Running               ls
      8258                       | date
      8259                       | sleep 30
[1] + 8257 Running               ls
      8258                       | date
      8259                       | sleep 30
Test 1
8257
Test 2
8257
Test 3
8257
Test 4
8257


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list