Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Description<br />
Options<br />
Operands<br />
Exit status<br />
You can use local to make a variable local to a function. When a variable is made<br />
local, it inherits the initial value and exported and read-only attributes from the<br />
variable with the same name in the surrounding scope, if there is one. Otherwise,<br />
the variable is initially unset.<br />
<strong>qsh</strong> uses dynamic scoping, so that if you make the variable alpha local to function<br />
foo, which then calls function bar, references to the variable alpha made inside bar<br />
will refer to the variable declared inside foo, not to the global variable named alpha.<br />
The special parameter - is the only special parameter that can be made local . By<br />
making - local, any shell options that are changed with set inside the function are<br />
restored to their original values when the function returns.<br />
None.<br />
Related information<br />
Each name specifies a variable in the current environment. If a value is also<br />
specified, the value of the variable is updated.<br />
v 0 when successful.<br />
v >0 when called from outside of a function.<br />
v “export - Set export attribute for variables”<br />
v “readonly - Set read-only attribute for variables”<br />
v “set - Set or unset options and positional parameters”<br />
v “unset - Unset values of variables and functions”<br />
[ Legal | AS/400 Glossary ]<br />
readonly - Set read-only attribute for variables<br />
Synopsis<br />
Description<br />
94 <strong>Qshell</strong> <strong>Interpreter</strong> (<strong>qsh</strong>)<br />
readonly [ -p][ name [ =value ] ... ]<br />
You can use readonlyto set the read-only attribute for the variable(s) specified by<br />
name. A variable with the read-only attribute cannot have its value changed by a<br />
subsequent assignment and cannot be unset.<br />
Note that <strong>qsh</strong> can change the value of a variable with the read-only attribute. For<br />
example, if PWD has the read-only attribute, it’s value will be changed when you<br />
change the current working directory.