| Summary: | jobs command differs in interactive vs. non-interactive /bin/sh | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Andre Albsmeier <Andre.Albsmeier> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.2-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Andre Albsmeier
2001-01-24 06:50:00 UTC
State Changed From-To: open->closed 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); |