-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Improve windows shell mode; fix edit() function for windows #7108
Conversation
…e opened properly on windows. Also prepend it to repl_cmd commands to better emulate shell mode for windows. Fixes #7107.
Do we need some kind of quoting here. What happens when you do e.g. |
Seems to work. LGTM then. |
…sures windows commands are handled by spawn(`cmd /c $editor $file`).
|
Thanks for taking a look @vtjnash. Should we change the default |
for very limiting shelling out, it might be OK to call |
Hmmm....I think we'll be best off to use shell> C:/Users/karbarcca/Google Drive/Dropbox/Dropbox/keys.docx
'C:/Users/karbarcca/Google' is not recognized as an internal or external command
,
operable program or batch file. Then I'd realize there are spaces, so I can just run: shell> 'C:/Users/karbarcca/Google Drive/Dropbox/Dropbox/keys.docx' Which works, and which is what I have run in the terminal anyway to open files, so I'm familiar with it. |
No, using cmd will start to break down quickly, since libuv does quote the args so that programs that use the windows API for parsing command lines get what they expect. Cmd uses different rules, and the combination of the two is just a mess |
What would you suggest then? |
As I mentioned in my post yesterday, you need to implement rules for quoting calls to cmd and set the flag to disable quoting by libuv |
Ok, I'll play around with it some more today. |
I played around a bit with this. It seems like Also, how would one go about passing the |
yes, you would need to add another argument to spawn, and the corresponding flags in the Note that rather than using |
6c7c7e3
to
1a4c02f
Compare
Mostly superseded by #8725, yeah? |
Prepend 'cmd /c' to edit function
start
command to allow files to be opened properly on windows. Also prepend it to repl_cmd commands to better emulate shell mode for windows. Fixes #7107.