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.

Contents<br />

Chapter 1. <strong>Qshell</strong> <strong>Interpreter</strong> . . . . . . . . . . . . . . . . . . . 1<br />

Warning: Temporary Level 2 Header. . . . . . . . . . . . . . . . . 1<br />

How to use these pages: . . . . . . . . . . . . . . . . . . . . 1<br />

How to see what’s new or changed:. . . . . . . . . . . . . . . . 1<br />

What’s new: Summary of changes . . . . . . . . . . . . . . . . . 1<br />

Documentation enhancements . . . . . . . . . . . . . . . . . . 3<br />

How to see what’s new or changed:. . . . . . . . . . . . . . . . 3<br />

Chapter 2. Using <strong>qsh</strong>. . . . . . . . . . . . . . . . . . . . . . 5<br />

Starting <strong>Qshell</strong>. . . . . . . . . . . . . . . . . . . . . . . . . 5<br />

STRQSH - Start QSH . . . . . . . . . . . . . . . . . . . . . 5<br />

Customizing your environment . . . . . . . . . . . . . . . . . . . 6<br />

Global profile file . . . . . . . . . . . . . . . . . . . . . . . 7<br />

Profile file . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />

Environment file . . . . . . . . . . . . . . . . . . . . . . . 7<br />

Editing files . . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />

National language support (NLS) considerations . . . . . . . . . . . . 7<br />

Performance considerations. . . . . . . . . . . . . . . . . . . . 8<br />

Developing your own utilities . . . . . . . . . . . . . . . . . . . 9<br />

Differences between <strong>Qshell</strong> and other interpreters . . . . . . . . . . . 9<br />

Chapter 3. Command Language . . . . . . . . . . . . . . . . . 11<br />

Quoting . . . . . . . . . . . . . . . . . . . . . . . . . . . 11<br />

Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 12<br />

Positional parameters . . . . . . . . . . . . . . . . . . . . . 12<br />

Special parameters . . . . . . . . . . . . . . . . . . . . . . 12<br />

Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . 13<br />

Variables set by <strong>qsh</strong> . . . . . . . . . . . . . . . . . . . . . 13<br />

Variables used by <strong>qsh</strong> . . . . . . . . . . . . . . . . . . . . . 14<br />

Word expansions. . . . . . . . . . . . . . . . . . . . . . . . 16<br />

Tilde expansion . . . . . . . . . . . . . . . . . . . . . . . 16<br />

Parameter expansion . . . . . . . . . . . . . . . . . . . . . 16<br />

Command substitution . . . . . . . . . . . . . . . . . . . . . 17<br />

Arithmetic expansion . . . . . . . . . . . . . . . . . . . . . 18<br />

Field splitting . . . . . . . . . . . . . . . . . . . . . . . . 18<br />

Path name expansion . . . . . . . . . . . . . . . . . . . . . 18<br />

Quote removal. . . . . . . . . . . . . . . . . . . . . . . . 18<br />

Shell Patterns . . . . . . . . . . . . . . . . . . . . . . . . 19<br />

Arithmetic Expressions. . . . . . . . . . . . . . . . . . . . . 19<br />

Redirection . . . . . . . . . . . . . . . . . . . . . . . . . . 21<br />

Here-documents . . . . . . . . . . . . . . . . . . . . . . . 22<br />

Using commands. . . . . . . . . . . . . . . . . . . . . . . . 22<br />

Simple commands . . . . . . . . . . . . . . . . . . . . . . . 22<br />

Path search. . . . . . . . . . . . . . . . . . . . . . . . . 22<br />

Command exit status . . . . . . . . . . . . . . . . . . . . . 23<br />

Pipelines . . . . . . . . . . . . . . . . . . . . . . . . . . . 23<br />

Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24<br />

Asynchronous lists . . . . . . . . . . . . . . . . . . . . . . 24<br />

Sequential lists . . . . . . . . . . . . . . . . . . . . . . . 24<br />

AND lists. . . . . . . . . . . . . . . . . . . . . . . . . . 25<br />

OR lists . . . . . . . . . . . . . . . . . . . . . . . . . . 25<br />

Compound commands. . . . . . . . . . . . . . . . . . . . . . 25<br />

Grouping commands . . . . . . . . . . . . . . . . . . . . . 25<br />

© Copyright <strong>IBM</strong> Corp. 1998, 1999 iii

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

Saved successfully!

Ooh no, something went wrong!