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.

patch<br />

Localization<br />

Exit Values<br />

Portability<br />

Related Information<br />

diff, ed<br />

To some extent, patch tries the same process if the patch file is in normal format<br />

rather than context format. Because the patch file does not contain the context<br />

information, patch has less to work with and probably creates more rejects. patch<br />

always writes the rejectfile in context format, regardless of the format of the<br />

patchfile.<br />

By default, the reject file has the same name as the original file, plus the suffix<br />

.rej. You can use –r to specify a different reject file on the command line. If the<br />

reject file already exists, patch overwrites it.<br />

If you do not specify –R, patch starts out with the assumption that the patch file<br />

could be normal or reversed. Therefore if the first change is rejected, patch tries<br />

the reverse change to see if that one works. If the reverse change is also rejected,<br />

patch continues with other changes in the file, trying both forward changes and<br />

reverses until one of them works. If the one that works is a forward change, patch<br />

attempts only forward changes for the rest of the file. If the one that works is a<br />

reverse change, patch issues a message to this effect and ask if it should treat all<br />

the changes as reverse ones. However, if the –R option is specified on the<br />

command line, it is assumed to hold for all changes in the patch file.<br />

The patch file can contain output from several diff comparisons. patch treats each<br />

collection of changes as a separate patch file, and with each, patch may prompt<br />

you for the name of the file you want to patch.<br />

patch uses the following localization variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_TIME<br />

v LC_SYNTAX<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 There were one or more rejects<br />

>1 An error occurred<br />

pathchk — Check a pathname<br />

Format<br />

P<strong>OS</strong>IX.2 User Portability Extension, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

The –B, –F, –f, –s, and –v options are not extensions to the P<strong>OS</strong>IX standard.<br />

pathchk [–p] pathname ...<br />

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