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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

tcsh<br />

entire input buffer with spell-line (usually bound to M-$). The correct shell variable<br />

can be set to ’cmd’ to correct the command name or ’all’ to correct the entire line<br />

each time return is typed.<br />

When spelling correction is invoked in any of these ways and the shell thinks that<br />

any part of the command line is misspelled, it prompts with the corrected line:<br />

> set correct = cmd<br />

> lz /usr/bin<br />

CORRECT>ls /usr/bin (y|n|e|a)?<br />

where one can answer ’y’ or space to execute the corrected line, ’e’ to leave the<br />

uncorrected command in the input buffer, ’a’ to abort the command as if ^C had<br />

been hit, and anything else to execute the original line unchanged.<br />

Spelling correction recognizes user-defined completions (see the complete built-in<br />

command). If an input word in a position for which a completion is defined<br />

resembles a word in the completion list, spelling correction registers a misspelling<br />

and suggests the latter word as a correction. However, if the input word does not<br />

match any of the possible completions for that position, spelling correction does not<br />

register a misspelling.<br />

Like completion, spelling correction works anywhere in the line, pushing the rest of<br />

the line to the right and possibly leaving extra characters to the right of the cursor.<br />

Attention: Spelling correction is not guaranteed to work the way one intends, and<br />

is provided mostly as an experimental feature.<br />

Editor commands<br />

bindkey lists key bindings and bindkey -l lists and briefly describes editor<br />

commands. Only new or especially interesting editor commands are described here.<br />

See emacs and vi for descriptions of each editor’s key bindings.<br />

The character or characters to which each command is bound by default is given in<br />

parentheses. ^character means a control character and M-character a meta<br />

character, typed as escape-character on terminals without a meta key. Case counts,<br />

but commands which are bound to letters by default are bound to both lower- and<br />

uppercase letters for convenience.<br />

complete-word<br />

Completes a word as described under “Completion and listing” on page<br />

629.<br />

complete-word-back<br />

Like complete-word-fwd, but steps up from the end of the list.<br />

complete-word-fwd<br />

Replaces the current word with the first word in the list of possible<br />

completions. May be repeated to step down through the list. At the end of<br />

the list, beeps and reverts to the incomplete word.<br />

complete-word-raw<br />

Like complete-word, but ignores user-defined completions.<br />

copy-prev-word<br />

Copies the previous word in the current line into the input buffer. See also<br />

insert-last-word.<br />

dabbrev-expand<br />

Expands the current word to the most recent preceding one for which the<br />

632 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!