-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
wt does not handle newlines properly #4619
Comments
@Jaykul
|
You're absolutely right. I am sorry -- I meant to come up with a pure-PowerShell example of that syntax (or to use echoargs.exe) so I could tell for sure what was going on, and I didn't do it before filing the issue. In case it will help with discussions with other PowerShell users like me -- who forget that PowerShell does implied strings -- here's a simple example of what PowerShell is doing wrong: Note: Write-Host takes any number of strings parameters And of course, if you pass a weird string like that to a "native" command, PowerShell wraps it in quotes: Basically, what happens is this:
When we don't leave a space between the wt `
new-tab -p "PowerShell Core" ";"`
split-pane -H -p "Windows PowerShell" ";"`
split-pane -p cmd |
Environment
Steps to reproduce
Run this in PowerShell:
Expected behavior
I should get a new tab split twice (three panes)
Actual behavior
2, Three tabs
and
WORKAROUND
I eventually found that if I add a space after every
;
then it works (except for #4618):The text was updated successfully, but these errors were encountered: