Date: Sun, 2 Sep 2001 16:20:09 -0700 (PDT) From: <jon@FreeBSD.org> To: andre.albsmeier@mchp.siemens.de, jon@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/24591: jobs command differs in interactive vs. non-interactive /bin/sh Message-ID: <200109022320.f82NK9G13771@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: jobs command differs in interactive vs. non-interactive /bin/sh State-Changed-From-To: open->closed State-Changed-By: jon State-Changed-When: Sun Sep 2 16:16:45 PDT 2001 State-Changed-Why: If you want a shell that behaves the same way as an interactive shell, start sh with the -i flag. The reason this does not work in non-interactive mode is because the command string is not stored unless the shell is an interactive root shell. See jobs.c line 678: if (iflag && rootshell && n) ps->cmd = commandtext(n); http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24591 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109022320.f82NK9G13771>