Revision [168]

This is an old revision of CommandSet made by DavidLee on 2008-05-31 17:38:34.

 

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
<env>
   <variable name="a" type="xml"/>
   <variable name="PATH" type="string"/>
</env>


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