-
I have Windows and using VS code for editing and its integrated Terminal to run scripts, I want to run a simeple script called Untitled.xsh without invoking xonsh in the front; that is,
runs as expected. However, omitting xonsh shows errors,
seems like Xonsh doesn't support shebang in Windows that I set in Untitled.xsh
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I figured a solution that implies writing the shebang as follows (I already installed Git and enabled Linux commands during Git installation process),
As we know shebang is Unix-based syntax but the escape characters should be inverted and doubled because we are using it in the Windows system. |
Beta Was this translation helpful? Give feedback.
-
I'm not working with xonsh on Windows, but on Unix it works to write just
when you have xonsh in your path. |
Beta Was this translation helpful? Give feedback.
I figured a solution that implies writing the shebang as follows (I already installed Git and enabled Linux commands during Git installation process),
As we know shebang is Unix-based syntax but the escape characters should be inverted and doubled because we are using it in the Windows system.
An alternate solution is one should use Git Bash as the default Terminal in VS code then including the shebang command in Untitled.xsh.