From: Earnie B. <ear...@ya...> - 2002-11-02 12:50:25
|
Manu B wrote: > 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. > Not that I'm aware of. What are you trying to accomplish? Why do you need the subprocess shell to remain open? Could you put the commands in the startup ~/.profile file? Earnie. |