Command declare
Name
declare Declares or describes namespaces, variables and functionsSynopsis
declaredeclare -p varname
declare namespace [prefix=[uri]]
The declare command is used to add global declarations to the shell. Currently the declare namespaces is the only declaration.
Future may include serialization
If uri is omitted then the namespace is undeclared
If the -p option is specified then the argument is used as a variable name and its type information is printed as in the set command.
Examples
Exampledeclare namespace xmlsh=http://www.xmlsh.org/namespaces/xmlsh declare namespace
Result
xmlsh=http://www.xmlsh.org/namespaces/xmlsh
Commands
CategoryCommands