Initiates or terminates a string (variables expanded)
Brace quote is used to initiate and terminate strict strings where variables can be expanded.
While brace quotes are untraditional compared to your typical string quotations in POSIX shells, brace quotes have one advantage in that the open and close grapheme differ (ie
( is a different character to
)). This brings benefits when nesting quotes as it saves the developer from having to carefully escape the nested quotation marks just the right number of times.
Commands cannot be quoted using double quotes because
( is recognized as its own command.
The open brace character is only recognized as a brace quote token if it is the start of a parameter.
» set: example=(World!) » out: (Hello $example) Hello (World!)
Quotes can also work over multiple lines
» out: (foo » bar) foo bar
@) Token: Expand values as an array
}) Tokens: Initiates or terminates a code block
") Token: Initiates or terminates a string (variables expanded)
') Token: Initiates or terminates a string (variables not expanded)
$) Token: Expand values as a string
~) Token: Home directory path variable
((brace quote): Write a string to the STDOUT without new line
out: Print a string to the STDOUT with a trailing new line character
set: Define a local variable and set it's value
This site's content is rebuilt automatically from murex's source code after each merge to the
master branch. Downloadable murex binaries are also built with the website.
Last built on Fri Sep 10 15:05:25 UTC 2021 against commit 437c274437c274fded54d82e99d70ea7d2917f332c095dd.
Current version is 2.2.1200 BETA which has been verified against tests.