Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Examples<br />
1. List all variables and their values: set<br />
2. List all option settings: set -o<br />
3. Set positional parameters $1, $2, $3: set alpha beta gamma<br />
4. Set the allexport and notify options: set -o allexport -o notify<br />
5. Set the verbose and xtrace options: set -xv<br />
6. Unset the xtrace option: set +x<br />
7. Unset the notify option: set +o notify<br />
8. Unset all positional parameters: set —<br />
[ Legal | AS/400 Glossary ]<br />
shift - Shift positional parameters<br />
Synopsis<br />
Description<br />
Options<br />
Operands<br />
Exit status<br />
shift [ n ]<br />
You can use shift to shift the positional parameters to the left by n. Positional<br />
parameter 1 is assigned the value of positional parameter (1+n), positional<br />
parameter 2 is assigned the value of positional parameter (2+n), and so forth. The<br />
special parameter # is updated with the new number of positional parameters.<br />
None.<br />
Related information<br />
Examples<br />
The value of n must be an unsigned integer less than or equal to the special<br />
parameter #. Ifnis not specified, the default value is 1. If n is 0, there are no<br />
changes to the positional parameters.<br />
v 0 when successful.<br />
v >0 when n is invalid.<br />
v “set - Set or unset options and positional parameters”<br />
1. Shift the positional parameters by two: shift 2<br />
[ Legal | AS/400 Glossary ]<br />
Chapter 4. Utilities 97