Not able to use reg add. Getting syntax error #19605

Closed
opened 2026-01-31 06:48:30 +00:00 by claunia · 7 comments
Owner

Originally created by @dvein95 on GitHub (Mar 29, 2023).

Originally assigned to: @carlos-zamora on GitHub.

Windows Terminal version

1.16.10262.0

Windows build number

10.0.22621.0

Other Software

No response

Steps to reproduce

Try to add reg value but getting syntax error
reg add HKEY_CURRENT_USER\software\microsoft\office\16.0\outlook\search /t REG_DWORD /v test /d 1

Expected Behavior

expected to add the reg value

Actual Behavior

syntax error occur

Originally created by @dvein95 on GitHub (Mar 29, 2023). Originally assigned to: @carlos-zamora on GitHub. ### Windows Terminal version 1.16.10262.0 ### Windows build number 10.0.22621.0 ### Other Software _No response_ ### Steps to reproduce Try to add reg value but getting syntax error reg add HKEY_CURRENT_USER\software\microsoft\office\16.0\outlook\search /t REG_DWORD /v test /d 1 ### Expected Behavior expected to add the reg value ### Actual Behavior syntax error occur
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 06:48:30 +00:00
Author
Owner

@DHowett commented on GitHub (Mar 29, 2023):

Can you share a screenshot?

This isn't exactly something Terminal is in control of, but we can still try to help.

@DHowett commented on GitHub (Mar 29, 2023): Can you share a screenshot? This isn't exactly something Terminal is in control of, but we can still try to help.
Author
Owner

@dvein95 commented on GitHub (Mar 29, 2023):

terminal_error
Pleasee see the screenshot.
If I run the command in PowerShell Terminal there is no issue.
If I run the command using normal cmd there is no issue

@dvein95 commented on GitHub (Mar 29, 2023): ![terminal_error](https://user-images.githubusercontent.com/129334901/228673036-03e4c095-dd72-4662-9350-0565e7ac2249.PNG) Pleasee see the screenshot. If I run the command in PowerShell Terminal there is no issue. If I run the command using normal cmd there is no issue
Author
Owner

@zadjii-msft commented on GitHub (Mar 31, 2023):

Huh.

This might sound weird, but are you typing the command in, or copy-pasting it/? I wonder if there's a paste filter in conhost that might translate characters that look like . or / into the ASCII ones.

@zadjii-msft commented on GitHub (Mar 31, 2023): Huh. This might sound weird, but are you typing the command in, or copy-pasting it/? I wonder if there's a paste filter in conhost that might translate characters that _look_ like `.` or `/` into the ASCII ones.
Author
Owner

@dvein95 commented on GitHub (Apr 2, 2023):

Hmm, I copy the command in NotePad then it works. Seems Terminal not able to automatic change the ASCII or otherway around

@dvein95 commented on GitHub (Apr 2, 2023): Hmm, I copy the command in NotePad then it works. Seems Terminal not able to automatic change the ASCII or otherway around
Author
Owner

@carlos-zamora commented on GitHub (Apr 5, 2023):

Note to team:
we should either...

  • make this the epic for special character filtering for paste, or...
  • find a dup (possibly #9380, #6134)
@carlos-zamora commented on GitHub (Apr 5, 2023): Note to team: we should either... - make this the epic for special character filtering for paste, or... - find a dup (possibly #9380, #6134)
Author
Owner

@carlos-zamora commented on GitHub (Apr 6, 2023):

/dup #6134

@carlos-zamora commented on GitHub (Apr 6, 2023): /dup #6134
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Apr 6, 2023):

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!

@microsoft-github-policy-service[bot] commented on GitHub (Apr 6, 2023): 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#19605