You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// cmd.Args is unused if cmd.SysProcAttr.CmdLine is set and nonempty
97
97
// snclient sets it and does not populate cmd.Args
98
98
99
-
// the quoutes should not be removed
100
-
// the reasoning is to pass some arguments as written inside the quoutes, so that they can take a string form and not be converted
99
+
// the quotes should not be removed
100
+
// the reasoning is to pass some arguments as written inside the quotes, so that they can take a string form and not be converted
101
101
// if an argument is passed like this --optionX foo,bar powershell parameter parser thinks it is an object/string array and refuses to parse it as string
102
102
// it has to be passed like --optionX 'foo,bar' to be parsed as a string
103
103
104
-
// 1 double quoute (") has to be converted to 3 double quoutes of cmd.SysProcAttr.CmdLine
104
+
// 1 double quote (") has to be converted to 3 double quotes of cmd.SysProcAttr.CmdLine
105
105
// check snclient_windows.go powershell block for more explanation
//nolint:dupl // the functions are largely the same, but scriptMacroType is different. Redefining expected strings for each macro type is easier to understand.
0 commit comments