Bug 481

Summary: Make ash.c builtin jobs command look more like bash
Product: Busybox Reporter: Earl Chew <echew>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: enhancement CC: busybox-cvs
Priority: P5    
Version: 1.14.x   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Host: Target:
Build:
Attachments: Enhance output format from jobs builtin command

Description Earl Chew 2009-07-23 05:27:45 UTC
The output from bash jobs for:

a. jobs
b. jobs -p
c. jobs -l
d. jobs -pl

resembles:



[1]+  Running                 ls | date | sleep 30 &
1727
[1]+  1727 Running                 ls
      1728 Running                 | date
      1729 Running                 | sleep 30 &
[1]+  1727 Running                 ls
      1728 Running                 | date
      1729 Running                 | sleep 30 &
Comment 1 Earl Chew 2009-07-23 05:28:20 UTC
Created attachment 491 [details]
Enhance output format from jobs builtin command
Comment 2 Denys Vlasenko 2009-08-23 20:10:25 UTC
Applied to git, thanks!

I only excluded this part:

@@ -4627,8 +4634,7 @@
 		ps->status = -1;
 		ps->cmd = nullstr;
 #if JOBS
-		if (doing_jobctl && n)
-			ps->cmd = commandtext(n);
+		ps->cmd = commandtext(n);
 #endif
 	}
 }

it does not seem to be relevant, and I do not immediately see that it is correct.