Reputation: 195
How can I start a second cygwin shell from commandline of the first cygwinshell which opens in a separate window? I tried "bash --login -i" but it apparently it started in the current window.
Upvotes: 2
Views: 3327
Reputation: 51613
It depends on what you mean by shell window. If it's the default setup, then it uses cmd.exe
, so you can issue:
cygstart "/cygdrive/C/windows/system32/cmd.exe \k 'bash.exe -i'"
Or maybe simply this should work:
cygstart bash
Another working solution is (somewhat funny):
cmd /c start cmd /k 'bash -i'
But a recommended solution is to use something better (e.g. Console2, rxvt (part of cygwin...).
Upvotes: 5