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

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 />

None.<br />

Related information<br />

Each argument is converted and displayed as specified by the format.<br />

v 0 when successful.<br />

v >0 when unsuccessful.<br />

v “echo - Write arguments to standard output”<br />

v “print - Write output”<br />

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

read - Read a line from standard input<br />

Synopsis<br />

Description<br />

Options<br />

Operands<br />

Exit status<br />

Related information<br />

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

read[ -r] [-pprompt ][-u[ n ]][ name ... ]<br />

You can use read to read a line and split it into fields using the characters from the<br />

IFS variable as delimiters. Normally, a backslash (\) at the end of a line causes the<br />

line to be continued on the next line. <strong>qsh</strong> removes both the backslash and the<br />

.<br />

v -p When the interactive option is set, display prompt on stderr.<br />

v -r A backslash at the end of a line does not mean continue the line.<br />

v -u Read from descriptor n if specified or descriptor 0 by default. The descriptor<br />

must be 0 or one that you opened with exec.<br />

Each name is assigned to the corresponding field from the input line. Any leftover<br />

fields are assigned to the last name. The default name is the REPLY variable.<br />

v 0 when successful.<br />

v >0 when unsuccessful.<br />

v “exec - Run commands and open, close, or copy descriptors”<br />

v “print - Write output”

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

Saved successfully!

Ooh no, something went wrong!