MPE/iX Shell and Utilities Reference Manual, Vol 2

patch(1) MPE/iX Shell and Utilities patch(1)
–R reverses the sense of the patch script. In other words, patch behaves as if the patch
script shows the changes that make the new version into the old version. You cannot
use –R if the patchfile is in ed script format.
With –R, patch attempts to reverse each change recorded in the script before apply-
ing the change. patch saves rejected differences in reversed format (which means
that you can check the rejections to see if patch made the reversals correctly).
–r rejectfile
records rejects in the file rejectfile, instead of the default reject file name. By default,
the reject file has the same name as the original file, plus the suffix .rej.
–s tells patch to remain silent until an error occurs. Normally, patch writes informa-
tion on the results of the patching process to standard error (stderr).
–v displays the version number of patch, then exits.
DIAGNOSTICS
patch may return the following status values:
0 successful completion.
1 there were one or more rejects.
>1 an error occurred.
Messages
Message: Argument to -D not an identifier
Cause: You specified an argument to the –D option that was not a valid C preprocessor
identifier.
Action: Make sure that the symbol provided is a valid C identifier, and try again.
Message: Can’t cd to dir.
Cause: patch was unable to change the current directory to the directory specified
with the –d option.
Action: Make sure that the specified directory name exists, was named properly, and
that you have appropriate permissions.
Message: Can’t open file filename
Cause: patch was unable to open the file that you wanted to patch.
Action: Make sure that filename exists, was named properly, and that you have appro-
priate permissions.
Commands and Utilities 1-411