Date: Wed, 24 Jan 2001 07:41:47 +0100 (CET) From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/24591: jobs command differs in interactive vs. non-interactive /bin/sh Message-ID: <200101240641.f0O6flo96164@curry.mchp.siemens.de>
next in thread | raw e-mail | index | archive | help
>Number: 24591 >Category: bin >Synopsis: jobs command differs in interactive vs. non-interactive /bin/sh >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 23 22:50:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Andre Albsmeier >Release: FreeBSD 4.2-STABLE i386 >Organization: >Environment: FreeBSD 4.2-STABLE >Description: When the 'jobs' command is used in /bin/sh, its output differs depending if sh is an interactive vs. non-interactive shell. >How-To-Repeat: andre@bali:~>/bin/sh $ sleep 10 & $ jobs [1] 76401 sleep 10 $ vs. andre@bali:~>cat jobstest #!/bin/sh sleep 10 & jobs andre@bali:~>./jobstest [1] 76411 In an interactive shell, name and args of the backgrounded command are printed. These are missing in the case of the non-interactive shell. >Fix: Unknown. In /src/bin/sh/jobs.c,v 1.27.2.2 in line 337, the code out1str(ps->cmd); normally outputs the command which doesn't work in non-interactive shells. >Release-Note: >Audit-Trail: >Unformatted: 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?200101240641.f0O6flo96164>
