|-x||Turns on execution tracing (default off)|
|-v||Turns on command interpretation parse tracing (default off) implies -location|
|-e||Turns on "throw on error" mode (default off)|
|-location||Turns on location printing on error (default on)|
|-xpipe||Turns on the xpipe implementation for pipes (Experimental) (default off)|
The set command also supports all of the global Serialization Options
If any options are specified then they set the global shell options for the current shell.
Preceding any boolean option by a + instead of a - will turn OFF that option.
turns OFF the omit-xml-declaration option
Setting -v also sets -location.
throw command whenever a simple command returns a non-zero value, except when the command is the condition for an if, while or until, or when preceded by a "!".
$ set -xxx [stdin line: 9] set: Unknown option: xxx set - Set positional parameters and view variables For more information enter: help set
If the shell is not interactive, and the exception is not trapped with a try, it will cause the shell to exit.
Example: sets $1 to "foo" and $2 to "bar"
$ set foo bar
Positional parameters can also be XML expressions
$ set <[1,"foo",<bar>spam</bar>]>
Note this differences from the unix shells in that it doesnt print the variables value, this is because
values in xmlsh can be extremely large.
$ set <env> <variable name="a" type="xml"/> <variable name="PATH" type="string"/> </env>