-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Launching Windows Terminal with a file path that has a trailing backslash (in quotes) breaks the launch #9518
Comments
This isn't really about the backslash. You should use:
|
Perhaps this is caused by the "special interpretation of backslash characters when they are followed by a quotation mark character" in CommandLineToArgvW. Try doubling the backslash. |
That does appear to resolve the issue, but I don't think that's intended behavior. It does identify the problem though. |
That's exactly what the cause is:
You might have better luck with |
I'm not sure I'd consider that a solution. Most people are going to be adding a trailing slash on accident, not because they intentionally included it. These people will get confused by the error. I know it took me about 30 mins to track down why (a keyboard shortcut in multicommander to launch windows terminal in the open directory automatically adds a trailing slash). Not going to reopen this myself, but I wouldn't consider that a satisfactory answer. |
We briefly considered rewriting the argument parser, but we realized that doing so would bring us out of line with every other Windows application. Unfortunately, we're just not willing to do that. Sorry! If there comes a day when we can do that without feeling like it breaks with established precedent, I'd be happy to do so 😄 |
Environment
Steps to reproduce
run
wt -d "%userprofile%\"
(edited, missed the -d parameter before)Expected behavior
windows terminal handles trailing backslashes and still launches in the correct folder
Actual behavior
error 0x8007010b. Note that this does not happen if you leave out the quotes (but that will also break on folders with spaces)
The text was updated successfully, but these errors were encountered: