Skip to main content

Single Quote (') Token

Laurence MorganLess than 1 minute

Single Quote (') Token

Initiates or terminates a string (variables not expanded)

Description

Single quote is used to initiate and terminate strict strings where variables cannot be expanded.

Commands can also be quoted using single quotes (eg where a command might contain a space character in it's name)

Examples

» set: example='World!'

» out: 'Hello $example'
Hello $example

Detail

Quotes can also work over multiple lines

» out: 'foo
» bar'
foo
bar

See Also

Last update:
Contributors: Olivier Refalo