16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

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.

Limits<br />

Portability<br />

Word after ... expanded to more than one argument<br />

In a context where only one argument was expected, a construct expanded<br />

to more than one argument.<br />

The maximum length of an executable filename, including subdirectories and<br />

extensions, is 1023 bytes.<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide.<br />

The construct $[arithmetic expression] is an extension of the P<strong>OS</strong>IX standard.<br />

Related Information<br />

alias, break, cd, continue, dot, echo, eval, exec, exit, export, fc, getopts, let,<br />

print, ps, pwd, read, readonly, return, set, shift, test, time, trap, true, typeset,<br />

ulimit, unalias, unset, whence. shedit<br />

Appendix I also explains how to set the local time zone with the TZ environment<br />

variable.<br />

shedit — Interactive command and history editing in the shell<br />

Format<br />

Usage notes<br />

set –o editmode<br />

EDITOR=editprog<br />

VISUAL= editprog<br />

P<strong>OS</strong>IX uses a number of keys for such things as erase and kill processing. By<br />

default, the shell leaves command-line editing to P<strong>OS</strong>IX, using these familiar editing<br />

keys. However, these functions are not particularly powerful or friendly. As an<br />

alternative, the shell has built-in facilities for interactive command editing and file<br />

name generation that not only aid in composing new commands but also make it<br />

easy for you to modify and re-execute previous commands. This capability is<br />

distinct from that provided by the fc command, which passes previous command<br />

lines to a separate program for editing. The built-in facilities mimic the emacs,<br />

gmacs, or vi screen editors, and enable the following commands (see set and vi<br />

for details).<br />

set –o emacs<br />

set –o gmacs<br />

set –o vi<br />

These facilities are also enabled (with the corresponding option set) by assigning a<br />

value ending in vi to the environment variables EDITOR or VISUAL. (See sh.)<br />

Unlike full-screen editors, shell editing uses a one-line window, extending from the<br />

end of the prompt to the next-to-last column. Multiline history entries are displayed<br />

with newlines represented as ^J.<br />

The number of columns on the output device is obtained from the COLUMNS<br />

environment variable if defined; otherwise, it is assumed to be 80.<br />

sh<br />

Chapter 2. Shell command descriptions 577

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

Saved successfully!

Ooh no, something went wrong!