Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

cp(1) OSS Shell and Utilities Reference Manual
If a source le and destination le are determined to be the same, a diagnostic message is written
to the standard error le.
Because of the differences between the Guardian and OSS le systems, the following anomalies
can occur when OSS les are copied to a Guardian destination.
A destination pathname can contain illegal /G lename characters, even after it
has been transformed into a /G pathname. As a result, the destination le cannot
be created on the Guardian destination, and the copy operation fails.
A destination pathname might be transformed into a /G pathname that is quite
different from its original pathname. For example, the OSS lename abcde.fghi
is converted into the /G lename ABCDEFGH. In this example, the copy
operation succeeds but the name of the newly created destination le might
cause confusion if it is not anticipated.
OSS lenames that are similar to each other might be converted into the same /G
lename when copied to the Guardian le system.
If a source directory contains more than two levels of directories (the maximum
that the Guardian le system currently supports), the entire source subtree cannot
be copied completely to the Guardian target; only the directories at supported
levels are copied.
Environment Variables
The following environment variables affect the execution of the cp command:
UTILSGE Species that HP extensions to the root directory should be omitted
when the initial directory is root (/) and a recursive option (-r or -R)is
used in an OSS shell command. Application programs that test this vari-
able might also honor its settings.
The UTILSGE value can be any of the following:
NOE Omit the /E directory.
NOG Omit the /G directory.
NOG:NOE Omit both the /G and /E directories.
The effect of assigning a value to the UTILSGE environment variable is
the same as specifying the -W NOG or -W NOE ag in the command.
EXAMPLES
a. To copy one le to another, enter:
cp le1 le2
If the le2 le exists (and is writable), its contents are replaced by the contents
of the le1 le.
b. To copy les to a directory, enter:
cp le1 le2 dir1
The directory dir1 must exist.
270 Hewlett-Packard Company 527188-004