ShellQuoting

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

Online Documentation

Properties

Link copied to clipboard
external val Escape: ShellQuoting

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

Link copied to clipboard
external val Strong: ShellQuoting

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)

Link copied to clipboard
external val Weak: ShellQuoting

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