Open o-sdn-o opened 11 months ago
Say, does this work properly for you on 1.18?
From my own testing:
chop is incapable of loading conhostv2
from rs1. I can't test earlier than rs2.
broken
broken
broken
broken
In release-1.18
branch the same result:
C:\Users\sdn>doskey test=echo 123 $t echo 456
C:\Users\sdn>test
123
C:\Users\sdn>456
C:\Users\sdn>
In NT3.51/Win2K/WinXP/7/8.1 the same result as in Win10,
but in Windows 3.11 slightly different result:
Also, &
does not work in Win311:
It looks like the line command split (multicommand) first appeared in doskey and later in cmd.exe itself. And now if we suddenly decide to fix this behavior, we just need to replace $T
with &
during parsing the cooked read and send it to cmd.exe in one line without splitting into multiline.
doskey test=echo 123 ^& echo 345
In Win 3.11:
In WinNT 3.51
In Win2K:
In WinXP/7/8.1/10:
So, it looks like this behavior has been going on since the beginning, when the TSR doskey was incorporated into the NT kernel.
The issue is probably related to us printing the prompt again, not anything to do with us replacing $t
with the right token. :)
Windows Terminal version
current main
Windows build number
10.0.19045.3448
Other Software
No response
Steps to reproduce
According to https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/doskey
and https://ss64.com/nt/doskey.html
the following commands
and
should give the same output.
Expected Behavior
Actual Behavior
Related to #14991