[Bug 7310] New: shell job count cannot be reached for the last jobs.

bugzilla at busybox.net bugzilla at busybox.net
Mon Aug 11 15:15:25 UTC 2014


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

           Summary: shell job count cannot be reached for the last jobs.
           Product: Busybox
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: frank.chen2 at baesystems.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


create 4 jobs for suspend(new shell, only 4 jobs), use jobs command you can see
the 4 jobs, but when you try to query on the last jobs(i.e jobs %4), it will
have "no such job" error. The reason is getjob only looking for (num < njobs),
njobs is the allocated jobs(in my case is 4).

The fix is use if (num <= njobs) in getjob for looking the last jobs.

-- 
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