Arbortext Command Language > Using the Arbortext Command Language > Symbolic Parameters > $* Symbolic Parameter
  
$* Symbolic Parameter
$* means substitute all the parameters supplied to the alias and $0 refers to the alias name. For example, the command:
alias screendump print editor screen $*
defines a command to do a screen dump (print the screen contents) and (because of the $*) allows users to specify print options with the screendump command. For example, you could print the screen contents by typing:
screendump
The following command would print the screen contents, but it would add page numbers to the header and a date stamp to the footer:
screendump header=pageno footer=datemark
You can also use symbolic parameters to substitute part of an option. For example, to define a command that opens (for editing) a document in the directory /user/xxx, issue the command:
alias homedir edit /user/xxx/$1
If you were editing a document in a different directory and issued the command homedir todo, your document would be replaced with the document todo from directory /user/xxx.
To simplify things even more, you can shorten the name of your new command from homedir to hd by typing:
alias hd homedir $*
To edit todo, enter hd todo.
The $0 symbolic parameter will substitute the alias name within the alias invocation itself. For example:
alias testecho response("You just ran the $0 function.")
Running the testecho alias would generate the following response:
You just ran the testecho function.