Enumeration ShellQuotingConst

Defines how an argument should be quoted if it contains spaces or unsupported characters.

Enumeration Members

Enumeration Members

Escape: "escape"

Character escaping should be used. This for example uses \ on bash and ` on PowerShell.

Strong: "strong"

Strong string quoting should be used. This for example uses " for Windows cmd and ' for bash and PowerShell. Strong quoting treats arguments as literal strings. Under PowerShell echo 'The value is $(2 * 3)' will print The value is $(2 * 3)

Weak: "weak"

Weak string quoting should be used. This for example uses " for Windows cmd, bash and PowerShell. Weak quoting still performs some kind of evaluation inside the quoted string. Under PowerShell echo "The value is $(2 * 3)" will print The value is 6