Variables who’s name is a positive integer, eg
0
,1
,2
,3
and above
Variables named 0
and above are the equivalent index value of @ARGV
.
These are reserved variables so they cannot be changed.
» function example { out $0 $2 }
» example 1 2 3
example 2
0
(str)This returns the name of the executable (like $ARGS[0]
)
1
, 2
, 3
… (str)This returns parameter n (like $ARGS[n]
). If there is no parameter n then the variable will not be set thus the upper limit variable is determined by how many parameters are set. For example if you have 19 parameters passed then variables $1
through to $19
(inclusive) will all be set.
set
): Define a variable (typically local) and set it’s valueout
): Print a string to the stdout with a trailing new line characterprivate
): Define a private function blockfunction
): Define a function blockautocomplete
): Set definitions for tab-completion in the command lineARGV
(json): Array of the command name and parameters within a given scopePARAMS
(json): Array of the parameters within a given scopestr
(string): string (primitive)This document was generated from gen/variables/numeric_doc.yaml.
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 Tue Dec 10 22:56:57 UTC 2024 against commit 60f05a260f05a227caf73dd5b3478e3cb3f4bb24e46745b.
Current version is 6.4.1005 (develop) which has been verified against tests cases.