-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Command line arguments with a dollar sign #4024
Copy link
Copy link
Closed
Labels
Breaking-Changebreaking change that may affect usersbreaking change that may affect usersCommittee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionResolution-By DesignThe reported behavior is by design.The reported behavior is by design.WG-Interactive-Consolethe console experiencethe console experience
Milestone
Metadata
Metadata
Assignees
Labels
Breaking-Changebreaking change that may affect usersbreaking change that may affect usersCommittee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionResolution-By DesignThe reported behavior is by design.The reported behavior is by design.WG-Interactive-Consolethe console experiencethe console experience
Type
Fields
Give feedbackNo fields configured for issues without a type.
Command line arguments sent to a file do not send in full if the argument contains a dollar sign. I have tried every combination of escape character and quote configuration that I can think of. I am not certain if this is specific to the dollar sign but I was able to use single quotes with an exclamation mark in the argument and that worked fine.
I was not able to find any explanation for this in other open issues or the known issues but I apologize if I'm missing something obvious here.
Steps to reproduce
Create a new ps1 file called test.ps1 with this snippet.
Then calling it from the command line
Expected behavior
Actual behavior
Environment data