github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/parser/double-quote.md (about)

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