Bug 481 - Make ash.c builtin jobs command look more like bash
Summary: Make ash.c builtin jobs command look more like bash
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.14.x
Hardware: PC Windows
: P5 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-23 05:27 UTC by Earl Chew
Modified: 2009-08-28 22:34 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Enhance output format from jobs builtin command (1.32 KB, patch)
2009-07-23 05:28 UTC, Earl Chew
Details

Note You need to log in before you can comment on or make changes to this bug.
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.