Hello,

I have run the following test with both mksh 54 and 56c (from Debian)
that shows that a command line option -m (or -o monitor) does not enable
job control (contrary to what the manpage indicates):

---
$ mksh -m -c 'fg'
mksh: fg: job control not enabled
$ mksh -c 'set -m; fg'
mksh: fg: %%: no such job
---

The same holds for pdksh, as well as for ksh (testing using an X11 app
since fg does not print an error message in non interactive mode):
---
$ ksh -m -c 'xclock& sleep 2'
^Z[1] + Stopped              ksh -m -c "xclock& sleep 2"
$ # xclock is not refreshed
$ fg
ksh -c "set -m; xclock& sleep 2"
$ ksh -c 'set -m; xclock& sleep 2'
^Z[1] + Stopped              ksh -c "set -m; xclock& sleep 2" 
$ # xclock is still refreshed
$ fg
ksh -c "set -m; xclock& sleep 2"
---

Regards,
-- 
G.raud

Reply via email to