@
) TokenExpand values as an array
The array token is used to tell murex to expand the string as multiple parameters (an array) rather than as a single parameter string.
» set: example="foo\nbar"
» out: $example
foo
bar
» out: @example
foo bar
In this example the second command is passing foo\nbar
(\n
escaped as a new line) to out
. The third command is passing an array of two values: foo
and bar
.
The string and array tokens also works for subshells
» out: ${ ja: [Mon..Fri] }
["Mon","Tue","Wed","Thu","Fri"]
» out: @{ ja: [Mon..Fri] }
Mon Tue Wed Thu Fri
Since arrays are expanded over multiple parameters, you cannot expand an array inside quoted strings like you can with a string variable:
» out: "foo ${ ja: [1..5] } bar"
foo ["1","2","3","4","5"] bar
» out: "foo @{ ja: [1..5] } bar"
foo 1 2 3 4 5 bar
» (${ ja: [1..5] })
["1","2","3","4","5"]
» (@{ ja: [1..5] })
@{ ja: [1..5] }
(
, )
) Tokens: Initiates or terminates a string (variables expanded)"
) 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 lineja
(mkarray): A sophisticated yet simply way to build a JSON arrayout
: Print a string to the STDOUT with a trailing new line characterset
: Define a local variable and set it's valueThis 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 Thu May 26 22:49:43 UTC 2022 against commit 59e27bb59e27bb1013043fc4a940cf9a2767c63f31dad2c.
Current version is 2.8.2100 which has been verified against 15889 tests cases.