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

A filename to be completed can contain variables, your own or others’ home<br />

directories abbreviated with ~ (tilde; see “Filename substitution” on page 643) and<br />

directory stack entries abbreviated with = (equal; see “Directory stack substitution”<br />

on page 644). For example:<br />

> ls ~k[^D]<br />

kahn kas kellogg<br />

> ls ~ke[tab]<br />

> ls ~kellogg/<br />

or<br />

> set local = /usr/local<br />

> ls $lo[tab]<br />

> ls $local/[^D]<br />

bin/ etc/ lib/ man/ src/<br />

> ls $local/<br />

Variables can also be expanded explicitly with the expand-variables editor<br />

command.<br />

delete-char-or-list-or-eof only lists at the end of the line; in the middle of a line it<br />

deletes the character under the cursor and on an empty line it logs one out or, if<br />

ignoreeof is set, does nothing. M-^D, bound to the editor command list-choices,<br />

lists completion possibilities anywhere on a line, and list-choices (or any one of the<br />

related editor commands which do or don’t delete, list and/or log out, listed under<br />

delete-char-or-list-or-eof) can be bound to ^D with the bindkey built-in command<br />

if so desired.<br />

The complete-word-fwd and complete-word-back editor commands (not bound to<br />

any keys by default) can be used to cycle up and down through the list of possible<br />

completions, replacing the current word with the next or previous word in the list.<br />

The tcsh shell variable fignore can be set to a list of suffixes to be ignored by<br />

completion. Consider the following:<br />

> ls<br />

Makefile condiments.h~ main.o side.c<br />

README main.c meal side.o<br />

condiments.h main.c~<br />

> set fignore = (.o \~)<br />

> emacs ma[^D]<br />

main.c main.c~ main.o<br />

> emacs ma[tab]<br />

> emacs main.c<br />

’main.c~’ and ’main.o’ are ignored by completion (but not listing), because they end<br />

in suffixes in fignore. \ is needed in front of ~ to prevent it from being expanded to<br />

home as described under “Filename substitution” on page 643. fignore is ignored if<br />

only one completion is possible.<br />

If the complete shell variable is set to enhance, completion: 1.) ignores case and<br />

2.) considers periods, hyphens and underscores (’.’, ’-’ and ’_’) to be word<br />

separators and hyphens and underscores to be equivalent.<br />

If you had the following files:<br />

comp.lang.c comp.lang.perl comp.std.c++<br />

comp.lang.c++ comp.std.c<br />

630 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!