murex Shell Docs

Parser Reference: Brace Quote ((, )) Tokens

Initiates or terminates a string (variables expanded)

Description

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.

Examples

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!)

Detail

Quotes can also work over multiple lines

» out: (foo
» bar)
foo
bar

See Also

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 Wed Jan 12 10:38:51 UTC 2022 against commit 50d6f4550d6f45b79e200b3cbc8e8e2639854a5265c7021.

Current version is 2.4.3010 BETA which has been verified against tests.