XSH2 command consists of a command name
and possibly command parameters separated
by whitespace. Individual XSH2 commands are
separated with a semicolon.
A command may optionally be followed
by an output redirection directive
(see binding_shell for output
redirection to a command
and Variables for output
redirection to variable).
Most commands have aliases, so for example
remove command
may also be invoked as del
or
rm
.
XSH2 recognizes the following commands (not including aliases): try, if, unless, while, do, eval, foreach, undef, def, assign, my, local, settings, defs, ifinclude, include, apropos, help, exec, xslt, documents, set_filename, variables, copy, xcopy, lcd, insert, wrap, wrap-span, xinsert, move, xmove, clone, normalize, strip-whitespace, ls, canonical, count, change-ns-uri, change-ns-prefix, set-ns, declare-ns, set, get, perl, remove, print, sort, map, rename, hash, close, index, open, create, save, set-dtd, dtd, set-enc, set-standalone, enc, validate, exit, process-xinclude, cd, pwd, locate, xupdate, verbose, test-mode, run-mode, debug, nodebug, version, validation, recovering, parser-expands-entities, keep-blanks, pedantic-parser, parser-completes-attributes, indent, empty-tags, skip-dtd, parser-expands-xinclude, load-ext-dtd, encoding, query-encoding, quiet, switch-to-new-documents, backups, nobackups, fold, unfold, redo, next, prev, last, return, throw, catalog, iterate, register-namespace, unregister-namespace, register-xhtml-namespace, register-xsh-namespace, register-function, unregister-function, stream, namespaces, xpath-completion, xpath-axis-completion, doc-info, xpath-extensions, lineno, edit-string, edit, call