case command line argument being changed when command has trailing space #16919

Closed
opened 2026-01-31 05:27:13 +00:00 by claunia · 8 comments
Owner

Originally created by @itsalljustdata on GitHub (Mar 3, 2022).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.19042.1526

Other Software

No response

Steps to reproduce

I have a ssh profile connecting to a unix box.

the command line is
ssh beast-debian

"beast-debian" is an alias in %USERPROFILE%.ssh\config

Host beast-debian
  User badger
  HostName 10.1.1.110
  ProxyCommand ssh -W %h:%p sshJump
  LocalForward 13389 10.1.1.110:3389

however, when I update the command line within terminal to remove (for instance " -v") extra parameters, it's updating the ssh alias to be beast-Debian which is NOT in my ssh config file

Expected Behavior

do not randomly change the name of my alias.

it only seems to happen if I leave a trailing space on the end of the command

ssh beast-debian (with trailing space)
becomes
ssh beast-Debian

but
ssh beast-debian
is fine

Actual Behavior

keeps changing the value to be beast-Debian

Originally created by @itsalljustdata on GitHub (Mar 3, 2022). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.19042.1526 ### Other Software _No response_ ### Steps to reproduce I have a ssh profile connecting to a unix box. the command line is `ssh beast-debian ` "beast-debian" is an alias in %USERPROFILE%\.ssh\config ``` Host beast-debian User badger HostName 10.1.1.110 ProxyCommand ssh -W %h:%p sshJump LocalForward 13389 10.1.1.110:3389 ``` however, when I update the command line within terminal to remove (for instance " -v") extra parameters, it's updating the ssh alias to be `beast-Debian` which is NOT in my ssh config file ### Expected Behavior do not randomly change the name of my alias. it only seems to happen if I leave a trailing space on the end of the command `ssh beast-debian ` (with trailing space) becomes `ssh beast-Debian ` but `ssh beast-debian` is fine ### Actual Behavior keeps changing the value to be beast-Debian
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 05:27:13 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 3, 2022):

Weird. Which shell are you using? cmd, powershell, pwsh, bash, something else...?

@zadjii-msft commented on GitHub (Mar 3, 2022): Weird. Which shell are you using? `cmd`, `powershell`, `pwsh`, `bash`, something else...?
Author
Owner

@ghost commented on GitHub (Mar 7, 2022):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Mar 7, 2022): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@itsalljustdata commented on GitHub (Mar 9, 2022):

That's just from within Win10, not even launching a shell window.

@itsalljustdata commented on GitHub (Mar 9, 2022): That's just from within Win10, not even launching a shell window.
Author
Owner

@zadjii-msft commented on GitHub (Mar 9, 2022):

Wait so like, from the Run Dialog? From the Start Menu? Maybe grab a screen recording with something like ScreenToGif?

@zadjii-msft commented on GitHub (Mar 9, 2022): Wait so like, from the Run Dialog? From the Start Menu? Maybe grab a screen recording with something like ScreenToGif?
Author
Owner

@itsalljustdata commented on GitHub (Mar 10, 2022):

2022-03-10_10-31-21

Here's a gif of my adding a trailing space to the SSH command and the "autocorrect" being applied...

@itsalljustdata commented on GitHub (Mar 10, 2022): ![2022-03-10_10-31-21](https://user-images.githubusercontent.com/40585882/157576805-c91ddd5c-6326-469a-8ce9-fbdf613f9c58.gif) Here's a gif of my adding a trailing space to the SSH command and the "autocorrect" being applied...
Author
Owner

@ianjoneill commented on GitHub (Mar 10, 2022):

This was fixed in #11137 - so this will be included in the 1.12 release when it becomes available in the Windows store (or you can download it from the releases page).

@ianjoneill commented on GitHub (Mar 10, 2022): This was fixed in #11137 - so this will be included in the 1.12 release when it becomes available in the Windows store (or you can download it from the releases page).
Author
Owner

@DHowett commented on GitHub (Mar 10, 2022):

Thanks for the report! Yup, looks like a /duplicate of #11133.

@DHowett commented on GitHub (Mar 10, 2022): Thanks for the report! Yup, looks like a /duplicate of #11133.
Author
Owner

@ghost commented on GitHub (Mar 10, 2022):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Mar 10, 2022): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16919