MPE/iX Shell and Utilities Reference Manual, Vol 2
r(1) MPE/iX Shell and Utilities r(1)
Compare this with
cp file1 /dir/file1
r 1=2
which is equivalent to
cp file1 /dir/file1
cp file2 /dir/file1
Since r only replaces the first occurrence of the old string 1, the second 1 does not change.
This shows that you have to be careful when you use the substitution feature.
r is a built-in alias, defined with
alias r=’fc -s’
ENVIRONMENT VARIABLES
r uses the following environment variables:
HISTFILE
contains the pathname of the history file.
HISTSIZE
gives the maximum number of previous commands that are accessible.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to any of the following:
— missing history file
— inability to find the desired command in the history file
2 Failure due to an invalid command line option or argument.
Messages
Because this utility is built into the
MPE/iX Shell, see the sh(1) man page for a complete list of
error messages that you may receive when using it.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. UNIX systems with the KornShell.
NOTE
This is an alias built into the shell.
1-454 Commands and Utilities