mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 159 forks source link

terminal opens and closes quickly #63

Closed vikasrtr closed 6 years ago

vikasrtr commented 6 years ago

Running open-wsl.exe opens and quickly closes terminal within few ms.

I can run 'bash' and it works. The subsystem have Ubuntu 14.04.

I also tried the steps in #36 c:\mine\app\wsl-terminal\bin>wslbridge bash -c pwd The output is simply a blank line.

vikasrtr commented 6 years ago

For record, I'm using latest v0.8.6

goreliu commented 6 years ago

Will wslbridge echo abc work?

c:\mine\app\wsl-terminal\bin>wslbridge echo abc & echo %errorlevel%
abc
0
vikasrtr commented 6 years ago

wslbridge echo abc is also not working. It just shows a blank line as output.

goreliu commented 6 years ago

What's the value of %errorlevel%?

vikasrtr commented 6 years ago

I get the following error code: wsl-terminal\bin>echo %errorlevel% 9009

goreliu commented 6 years ago

I can't guess the reason, you can report it here (https://github.com/rprichard/wslbridge/issues).

vikasrtr commented 6 years ago

@goreliu Sorry my bad. I was echoing %errorlevel% separately. The correct output now is as: wsl-terminal\bin>wslbridge echo abc & echo %errorlevel% 0

Does it helps now ?

goreliu commented 6 years ago

I have no ideas. Maybe you can use stracent or procmon to look for more details.