oils-for-unix / oils

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
http://www.oilshell.org/
Other
2.84k stars 157 forks source link

add +/- annotations to jobs builtin #2042

Closed melvinw closed 2 weeks ago

melvinw commented 3 months ago

A small quality of life improvement for job control. @andychu brought this up in https://oilshell.zulipchat.com/#narrow/stream/121540-oil-discuss/topic/Job.20control.20hard.20to.20understand

[I] osh-0.22.0$ cat
^Z
[PID 489245] Stopped with signal 20
[I] osh-0.22.0$ cat
^Z
[PID 489246] Stopped with signal 20
[I] osh-0.22.0$ cat
^Z
[PID 489247] Stopped with signal 20
[I] osh-0.22.0$ jobs
%1 489245 Stopped [process] cat
%2- 489246 Stopped [process] cat
%3+ 489247 Stopped [process] cat
melvinw commented 2 months ago

Let me see about adding a spec test

andychu commented 4 weeks ago

Hm I think we should land this? Let me look at what happened