'Single Quote'
Less than 1 minute
'Single Quote'
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
- %(Brace Quote)`: Initiates or terminates a string (variables expanded)
- Array (
@
) Token: Expand values as an array - Tilde (
~
) Token: Home directory path variable "Double Quote"
: Initiates or terminates a string (variables expanded)(brace quote)
: Write a string to the STDOUT without new line (deprecated)out
: Print a string to the STDOUT with a trailing new line characterset
: Define a local variable and set it's valuestring
(stringing): string (primitive){Curly Brace}
: Initiates or terminates a code block
This document was generated from gen/parser/quotes_doc.yaml.