Revision [669]

This is an old revision of CommandSet made by DavidLee on 2009-08-25 06:02:41.


Command set


set sets options and positional parameters


set [options]
set param1 [param2 ...]


-x Turns on execution tracing
-v Turns on command interpretation parse tracing
-omit-xml-declaration Sets the global Serialization parameter "omit-xml-declaration"
-indent Sets the global Serialization parameter "indent"
-encoding charset Sets the Serialization parameter "encoding" to charset
-xpipe Turns on the xpipe implementation for pipes
-xinclude Turns on the xinclude option for parsing.

set [param1] [param2] ...

Sets the positional parameters or prints environment variables

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>]>

With no arguments prints the names and types of all variables.
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
   <variable name="a" type="xml"/>
   <variable name="PATH" type="string"/>

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki