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.

fc<br />

the one indicated by first through to the previous command entered. If you<br />

omit both first and last with this option, the default command range is the<br />

16 most recently entered commands.<br />

–n Suppresses command numbers when displaying commands.<br />

–r Reverses the order of the commands in the command range.<br />

–s Reenters exactly one command without going through an editor. If a<br />

command specifier is given, fc selects the command to reenter as<br />

described earlier; otherwise, fc uses the last command entered. To perform<br />

a simple substitution on the command before reentry, use a parameter of<br />

the form old=new. The string new replaces the first occurrence of string old.<br />

fc displays the (possibly modified) command before reentering it.<br />

Environment Variables<br />

fc uses the following environment variables:<br />

Files<br />

Localization<br />

Usage notes<br />

Exit Values<br />

FCEDIT<br />

Contains the default editor to be used if none is specified with the –e<br />

option.<br />

HISTFILE<br />

Contains the pathname of the history file.<br />

HISTSIZE<br />

Gives the maximum number of previous commands that are accessible.<br />

/tmp Used to store temporary files. You can use the TMPDIR environment<br />

variable to dictate a different directory to store temporary files.<br />

$HOME/.sh_history<br />

This default history file is created.<br />

fc uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

1. fc is a built-in shell command.<br />

2. r is a built-in alias for fc –s. history is a built-in alias for fc –l.<br />

0 If you specified –l, this indicates successful completion.<br />

1 Failure due to any of the following:<br />

v Missing history file<br />

v Inability to find the desired line in the history file<br />

v Inability to create temporary file<br />

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