Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell mode on Windows #71

Closed
jaakkor2 opened this issue Oct 6, 2023 · 3 comments
Closed

Shell mode on Windows #71

jaakkor2 opened this issue Oct 6, 2023 · 3 comments

Comments

@jaakkor2
Copy link

jaakkor2 commented Oct 6, 2023

https://github.com/modernjuliaworkflows/modernjuliaworkflows.github.io/blob/main/pages/writing/writing.md#shell-mode-

By pressing ; you enter a terminal, where you can execute any bash command you want.

On Windows echo "hello" returns

ERROR: IOError: could not spawn `echo hello`: no such file or directory (ENOENT)

Possibilities include cmd /c echo "hello" or powershell echo "hello".

Endless discussion here JuliaLang/julia#23703 and in the linked issues and PRs.

@gdalle
Copy link
Collaborator

gdalle commented Oct 6, 2023

Thanks, I didn't know that! For a cross-platform example, does ls work?

@jaakkor2
Copy link
Author

jaakkor2 commented Oct 6, 2023

ls does not work either, because (IIUC) there is no shell associated in the shell mode in Windows. So shell mode can only launch binaries.

;powershell ls, ;powershell dir, ;cmd /c dir works. ;cmd /c ls does not.

@gdalle
Copy link
Collaborator

gdalle commented Oct 6, 2023

Ok, i added a comment specifying that the shell example works on Unix only

@gdalle gdalle closed this as completed Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants