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.
Options<br />
Operands<br />
Exit status<br />
Related information<br />
Examples<br />
When no arguments are specified, <strong>qsh</strong> displays a list of the variables with the<br />
read-only attribute and their values.<br />
v -p Precede each line of the output with the word “readonly ” so it is displayed in<br />
a re-enterable format.<br />
Each name specifies a variable in the current environment. If a value is also<br />
specified, the value of the variable is updated before setting the read-only attribute.<br />
v 0 when successful.<br />
v >0 when unsuccessful.<br />
v “export - Set export attribute for variables”<br />
v “local - Assign a local variable in a function”<br />
v “set - Set or unset options and positional parameters”<br />
v “unset - Unset values of variables and functions”<br />
1. Set the read-only attribute for an existing variable: readonly ALPHA<br />
2. Set the value and read-only attribute of a new variable: readonly ALPHA=one<br />
3. List all variables with the read-only attribute: readonly<br />
[ Legal | AS/400 Glossary ]<br />
set - Set or unset options and positional parameters<br />
Synopsis<br />
Description<br />
set [ -abCefFmnuvx- ][-o option ][argument ... ]<br />
set [ +abCefFmnuvx- ][+o option ][argument ... ]<br />
You can use set to:<br />
v Display the names and values of all shell variables by specifying no options or<br />
arguments.<br />
v Display the option settings by specifying the -o option but no option.<br />
v Set an option by specifying a - (minus) followed by the option letter or by<br />
specifying -o option.<br />
v Unset an option by specifying a + (plus) followed by the option letter or by<br />
specifying +o option.<br />
v Set positional parameters by specifying argument(s).<br />
v Unset positional parameters by specifying — but no argument.<br />
Chapter 4. Utilities 95