From: Manu B <ma...@us...> - 2002-11-02 10:33:28
|
I'm desperately trying to find an equivalent of "%COMSPEC% /K cmdline" with Bash. With command.com/cmd.exe, the /K switch executes 'cmdline' and remains. I've RTFM and just found the '-c' switch. eg: $ sh --login -i -c 'rm -f toto' With '-c', Bash executes 'rm -f toto' and terminates. IOW, '-c' equals to the '/C' switch of command.com/ cmd.exe. How could I make Bash to execute a command line and stay open. Manu. |