diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-CE18D940-FEB9-5678-A3CC-AA8A979AD4DA.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-CE18D940-FEB9-5678-A3CC-AA8A979AD4DA.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,12 @@ + + + + + +set

set [ {+|-}options | {+|-}o [ option_name ] ] ... [ {+|-}A [ name ] ] [ arg ... ]

Set the options for the shell and/or set the positional parameters, or declare and set an array.

Option Description

-s

Causes the specified arguments to be sorted before assigning them to the positional parameters (or to the array name if -A is used).

+s

Sort arguments in descending order.

-o

Flags may be specified by name using the -o option. If no option name is supplied with -o, the current option states are printed.

+o

Printed in a form that can be used as input to the shell.

-A

The name is set to an array containing the given arg s; if no name is specified, all arrays are printed together with their values.

+A

If name is an array, the given arguments will replace the initial elements of that array; if no name is specified, all arrays are printed without their values.

The behaviour of arguments after -A name or +A name depends on whether the option KSH_ARRAYS is set. If it is not set, all arguments following name are treated as values for the array, regardless of their form. If the option is set, normal option processing continues at that point; only regular arguments are treated as values for the array. This means that

set -A array -x -- foo

If the -A flag is not present, but there are arguments beyond the options, the positional parameters are set. If the option list (if any) is terminated by --, and there are no further arguments, the positional parameters will be unset.

If no arguments and no -- are given, then the names and values of all parameters are printed on the standard output. If the only argument is +, the names of all parameters are printed.

\ No newline at end of file