Yup. jp can be NULL. Should check for that, like this:

#if JOBS
        /* For "jobs | cat" to work like in bash, we must retain list of jobs
         * in child, but we do need to remove ourself */
        if (jp)
                freejob(jp);
#else
        for (jp = curjob; jp; jp = jp->prev_job)
                freejob(jp);
#endif

Will fix in svn. Please notify dash maintainer too.

Thanks for testing!
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to