I'm not sure is this a bug, or intentional behavior, but sh ignored -l option
when -c option used too. This happens because -c option handled at line 178,
before option -l (which is handled next, at line 189). I suppose reordering
these two blocks of code will fix this issue.
If you decide to do this, then one more option may be very useful: force exit
from emu/logout/shutdown when sh exits. Use case is trivial:
1) we need to execute single .dis file/sh command from host os
2) it require standard prepared environment (i.e. /lib/sh/profile must be
executed first)
3) /lib/sh/profile start some services (like ndb/cs), so after requested
.dis/sh command is done and sh exits there are some processes left and emu will
continue working
Right now I've to use this:
emu-g sh -c 'run /lib/sh/profile; MYCOMMAND; shutdown -h'
Original issue reported on code.google.com by powerman...@gmail.com on 7 Dec 2012 at 3:33
Original issue reported on code.google.com by
powerman...@gmail.com
on 7 Dec 2012 at 3:33