Double Quote (") Token
Less than 1 minute
"
) Token
Double Quote (Initiates or terminates a string (variables expanded)
Description
Double quote is used to initiate and terminate strict strings where variables can be expanded.
Commands can also be quoted using double quotes (eg where a command might contain a space character in it's name) however variables cannot be used as part of a command name.
Examples
» set: example="World!"
» out: "Hello $example"
Hello World!
Detail
Quotes can also work over multiple lines
» out: "foo
» bar"
foo
bar
See Also
- Array (
@
) Token: Expand values as an array - Brace Quote (
%(
,)
) Tokens: Initiates or terminates a string (variables expanded) - Curly Brace (
{
,}
) Tokens: Initiates or terminates a code block - Single Quote (
'
) Token: Initiates or terminates a string (variables not expanded) - String (
$
) Token: Expand values as a string - Tilde (
~
) Token: Home directory path variable (
(brace quote): Write a string to the STDOUT without new lineout
: Print a string to the STDOUT with a trailing new line characterset
: Define a local variable and set it's value