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

Open
opened 2026-01-31 05:27:06 +00:00 by claunia · 0 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:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16914