wh wrote:
 > Hi seb,
 > yes the mail was received but noone had time sofar to
 > investigate the problem

further info:
whoever takes a look at this; the problem is even worse than
originally described.  piping the output of "jobs" loses the
output entirely, while piping the output of "jobs %1" causes an
erroneous error message.

    BusyBox v1.7.0.svn (2007-07-05 13:13:46 EDT) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    $ sleep 3600 &
    $ sleep 700
(typed ^Z here)
    [2] + Stopped                    sleep 700
    $ jobs
    [2] + Stopped                    sleep 700
    [1] - Running                    sleep 3600
(two jobs)
    $ jobs | cat
    $ jobs | tr a-z A-Z
(note missing output)
    $ jobs
    [2] + Stopped                    sleep 700
    [1] - Running                    sleep 3600
(still two jobs)
    $ jobs %1
    [1] - Running                    sleep 3600
(good)
    $ jobs %2
    [2] + Stopped                    sleep 700
(also good)
    $ jobs %1 | cat
    ash: jobs: No such job: %1
(bad error message)
    $ jobs %2 | cat
    ash: jobs: No such job: %2
(bad error message)
    $ jobs
    [2] + Stopped                    sleep 700
    [1] - Running                    sleep 3600
(still two jobs)


paul


 > 
 > 
 > Seb wrote:
 > > Hello,
 > > =
 > 
 > > Sorry to insist, but as I don't see any reaction to my precedent mail,
 > > I'd just want to know if it wasn't well delivered on the list or
 > > if it's just an (uninteresting|desperated) case so that there is nothing
 > > to say. :)
 > > =
 > 
 > > Le Thu, 28 Jun 2007 16:34:39 +0200
 > > Seb <[EMAIL PROTECTED]> a =E9crit:
 > > =
 > 
 > >> Hello,
 > >>
 > >> It seems that there is a bug in the 'jobs' built-in command of ash. As
 > >> a matter of fact, its output cannot be captured nor piped.
 > >>
 > >> I made a little script (in attachment) which shows the case. If you
 > >> execute it with ash, you should see that 'test3' doesn't return
 > >> anything but a new line, while 'test4' indicates that the output is well
 > >> directed to stdout (so, according to the rules of shell, the pipe
 > >> should work).
 > >>
 > >> [...]
 > > =
 > 
 > > ++
 > > Seb.
 > > _______________________________________________
 > > busybox mailing list
 > > [email protected]
 > > http://busybox.net/cgi-bin/mailman/listinfo/busybox
 > > =
 > 
 > > =
 > 
 > > =
 > 
 > _______________________________________________
 > busybox mailing list
 > [email protected]
 > http://busybox.net/cgi-bin/mailman/listinfo/busybox

=---------------------
 paul fox, [EMAIL PROTECTED]
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to