github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/parser/single-quote.md (about) 1 # `'Single Quote'` 2 3 > Initiates or terminates a string (variables not expanded) 4 5 ## Description 6 7 Single quote is used to initiate and terminate strict strings where variables 8 cannot be expanded. 9 10 Commands can also be quoted using single quotes (eg where a command might 11 contain a space character in it's name) 12 13 14 15 ## Examples 16 17 ``` 18 » set example='World!' 19 20 » out 'Hello $example' 21 Hello $example 22 ``` 23 24 ## Detail 25 26 Quotes can also work over multiple lines 27 28 ``` 29 » out 'foo 30 » bar' 31 foo 32 bar 33 ``` 34 35 ## See Also 36 37 * [Array (`@`) Token](../parser/array.md): 38 Expand values as an array 39 * [Tilde (`~`) Token](../parser/tilde.md): 40 Home directory path variable 41 * [`"Double Quote"`](../parser/double-quote.md): 42 Initiates or terminates a string (variables expanded) 43 * [`%(Brace Quote)`](../parser/brace-quote.md): 44 Initiates or terminates a string (variables expanded) 45 * [`(brace quote)`](../parser/brace-quote-func.md): 46 Write a string to the STDOUT without new line (deprecated) 47 * [`out`](../commands/out.md): 48 Print a string to the STDOUT with a trailing new line character 49 * [`set`](../commands/set.md): 50 Define a local variable and set it's value 51 * [`string` (stringing)](../types/str.md): 52 string (primitive) 53 * [`{ Curly Brace }`](../parser/curly-brace.md): 54 Initiates or terminates a code block 55 56 <hr/> 57 58 This document was generated from [gen/parser/quotes_doc.yaml](https://github.com/lmorg/murex/blob/master/gen/parser/quotes_doc.yaml).