29.06.2013 Views

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

unset - Unset values of variables and functions<br />

Synopsis<br />

Description<br />

Options<br />

Operands<br />

Exit status<br />

Related information<br />

Examples<br />

unset [ -fv] [name ... ]<br />

You can use unset to unset each variable or function specified by name. If no<br />

option is specified, name refers to a variable. Variables with the read-only attribute<br />

cannot be unset.<br />

v -f name refers to a function.<br />

v -v name refers to a variable.<br />

Each name is a variable or function.<br />

v 0 when successful.<br />

v >0 when at least one name could not be found. The value is the number of<br />

name(s) that are not found.<br />

v “export - Set export attribute for variables”<br />

v “local - Assign a local variable in a function”<br />

v “readonly - Set read-only attribute for variables”<br />

v “set - Set or unset options and positional parameters”<br />

1. Unset the variable alpha: unset alpha<br />

2. Unset the function foo: unset -f foo<br />

[ Legal | AS/400 Glossary ]<br />

Utilities for writing scripts<br />

98 <strong>Qshell</strong> <strong>Interpreter</strong> (<strong>qsh</strong>)<br />

The following are <strong>Qshell</strong> utilities for writing scripts:<br />

v break - Exit from for, while, or until loop<br />

v colon (:) - Null utility<br />

v continue - Continue for, while, or until loop<br />

v false - Return false value<br />

v getopts - Parse utility options<br />

v let - Evaluate arithmetic expression<br />

v test - Evaluate expression<br />

v true - Return true value

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!