(features.info)Korn Shell Builtins
Korn Shell Builtins
===================
This section describes Bash builtin commands taken from `ksh'.
`fc'
`fc [-e ENAME] [-nlr] [FIRST] [LAST]'
`fc -s [PAT=REP] [COMMAND]'
Fix Command. In the first form, a range of commands from FIRST to
LAST is selected from the history list. Both FIRST and LAST may
be specified as a string (to locate the most recent command
beginning with that string) or as a number (an index into the
history list, where a negative number is used as an offset from the
current command number). If LAST is not specified it is set to
FIRST. If FIRST is not specified it is set to the previous
command for editing and -16 for listing. If the `-l' flag is
given, the commands are listed on standard output. The `-n' flag
suppresses the command numbers when listing. The `-r' flag
reverses the order of the listing. Otherwise, the editor given by
ENAME is invoked on a file containing those commands. If ENAME is
not given, the value of the following variable expansion is used:
`${FCEDIT:-${EDITOR:-vi}}'. This says to use the value of the
`FCEDIT' variable if set, or the value of the `EDITOR' variable if
that is set, or `vi' if neither is set. When editing is complete,
the edited commands are echoed and executed.
In the second form, COMMAND is re-executed after each instance of
PAT in the selected command is replaced by REP.
A useful alias to use with the `fc' command is `r='fc -s'', so
that typing `r cc' runs the last command beginning with `cc' and
typing `r' re-executes the last command (Note: Aliases.).
`let'
The `let' builtin allows arithmetic to be performed on shell
variables. For details, refer to Note: Arithmetic Builtins.
`typeset'
The `typeset' command is supplied for compatibility with the Korn
shell; however, it has been made obsolete by the `declare' command
(Note: Bash Builtins.).
Next: Korn Shell Variables Prev: Korn Shell Constructs Up: Korn Shell Features
[ Dokumentation lokal installierter Software ]