Revision [1920]

Last edited on 2014-06-15 18:56:28 by DavidLee
Additions:
||-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)||
if -v is set then commands are printed to the error output while parsed.
Setting -v also sets -location.
==Location (-location)==
If -location is set then any errors printed are preceded by a location line
$ set -xxx
[stdin line: 9]
set: Unknown option: xxx
set - Set positional parameters and view variables
For more information enter:
help set
Deletions:
||-x|| Turns on execution tracing (default off)||
||-v|| Turns on command interpretation parse tracing (default off)||
||-e|| Turns on "throw on error" mode (default off)||
||-xpipe|| Turns on the xpipe implementation for pipes (Experimental) (default off)||
if -v is set then commands are printed to the error output while parsed


Revision [1022]

Edited on 2009-11-25 13:58:22 by DavidLee
Additions:
[[CategoryCommands]]


Revision [1021]

Edited on 2009-11-25 13:58:07 by DavidLee
Additions:
||-x|| Turns on execution tracing (default off)||
||-v|| Turns on command interpretation parse tracing (default off)||
||-e|| Turns on "throw on error" mode (default off)||
||-xpipe|| Turns on the xpipe implementation for pipes (Experimental) (default off)||
Deletions:
-x Turns on execution tracing (default off)
-v Turns on command interpretation parse tracing (default off)
-e Turns on "throw on error" mode (default off)
-xpipe Turns on the xpipe implementation for pipes (Experimental) (default off)


Revision [895]

Edited on 2009-11-24 16:09:08 by DavidLee
Additions:
The set command also supports all of the global [[SerializationOptions Serialization Options]]
Deletions:
-omit-xml-declaration Sets the global [[Serialization]] parameter "omit-xml-declaration" (default on)
-indent Sets the global [[Serialization]] parameter "indent" (default on)
-encoding charset Sets the [[Serialization]] parameters "text-encoding" and "xml-encoding" to charset (default "UTF-8")
-text-encoding charset Sets the [[Serialization]] parameter "text-encoding" to charset (default "UTF-8")
-xml-encoding charset Sets the [[Serialization]] parameter "xml-encoding" to charset (default "UTF-8")
-method output-method Changes the default output method for serialzation. Must be one of (xml,html,xhtml,text)


Revision [871]

Edited on 2009-11-23 06:54:29 by DavidLee
Additions:
-method output-method Changes the default output method for serialzation. Must be one of (xml,html,xhtml,text)


Revision [861]

Edited on 2009-11-22 07:15:28 by DavidLee
Additions:
[[Commands]]
Deletions:
[[CommandsStandard]]


Revision [831]

Edited on 2009-10-25 17:48:52 by DavidLee
Additions:
If -e is set, then an exception is throw equivalent to using the [[ExceptionHandling 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 "!".
Deletions:
If -e is set, then an exception is throw equivalent to using the [[CommandThrow 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 "!".


Revision [830]

Edited on 2009-10-25 17:48:05 by DavidLee
Additions:
-e Turns on "throw on error" mode (default off)
===Execute Trace (-x)===
If -x is set then commands are printed to the error output prior to execution
===Verbose (-v)===
if -v is set then commands are printed to the error output while parsed
===Throw On Error (-e)===
If -e is set, then an exception is throw equivalent to using the [[CommandThrow 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 "!".
If the shell is not interactive, and the exception is not trapped with a try, it will cause the shell to exit.
Deletions:
-xinclude Turns on the xinclude option for parsing. (see [[Serialization]]) (default off)


Revision [748]

Edited on 2009-09-16 07:51:26 by DavidLee
Additions:
[[CommandsStandard]]
Deletions:
[[CommandsBuiltin]]


Revision [670]

Edited on 2009-08-25 06:55:06 by DavidLee
Additions:
set [options] [param1 [param2 ...]]
-x Turns on execution tracing (default off)
-v Turns on command interpretation parse tracing (default off)
-omit-xml-declaration Sets the global [[Serialization]] parameter "omit-xml-declaration" (default on)
-indent Sets the global [[Serialization]] parameter "indent" (default on)
-encoding charset Sets the [[Serialization]] parameters "text-encoding" and "xml-encoding" to charset (default "UTF-8")
-text-encoding charset Sets the [[Serialization]] parameter "text-encoding" to charset (default "UTF-8")
-xml-encoding charset Sets the [[Serialization]] parameter "xml-encoding" to charset (default "UTF-8")
-xpipe Turns on the xpipe implementation for pipes (Experimental) (default off)
-xinclude Turns on the xinclude option for parsing. (see [[Serialization]]) (default off)
===set 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.
Example
set +omit-xml-declaration
turns OFF the omit-xml-declaration option
===set parameters ===
===print variables===
With no arguments prints the names and types of all variables as an xml document.
Deletions:
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] ... ======
With no arguments prints the names and types of all variables.


Revision [669]

Edited on 2009-08-25 06:02:41 by DavidLee
Additions:
======Command set======
====Name====
**set** sets options and positional parameters
====Synopsis====
set [options]
set param1 [param2 ...]
====Options====
-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.


Revision [168]

Edited on 2008-05-31 17:38:34 by DavidLee
Additions:
----
[[CommandsBuiltin]]


Revision [167]

Edited on 2008-05-31 17:38:19 by DavidLee

No Differences

Revision [166]

Edited on 2008-05-31 17:37:57 by DavidLee
Additions:
$ set foo bar
Positional parameters can also be XML expressions
$ set <[1,"foo",<bar>spam</bar>]>
Deletions:
set foo bar


Revision [165]

Edited on 2008-05-31 17:37:10 by DavidLee
Additions:
======set [param1] [param2] ... ======
Sets the positional parameters or prints environment variables
Example: sets $1 to "foo" and $2 to "bar"
set foo 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.


Revision [164]

The oldest known version of this page was created on 2008-05-31 17:35:19 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki