Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

User Commands (c) cp(1)
descriptions.
Note 4: If you use the -p ag, all ACL entries for the source file or directory are
copied to the destination file or directory. Otherwise, the permissions for
the destination file or directory are set using the non-ACL descriptions.
Use on Guardian Objects
Specify Guardian files with the /G pathname convention.
Only unstructured Guardian files are supported. If both the source and destination are Guardian
files, the file attributes specific to Guardian (such as extent sizes, file code, and file type) are
preserved. Thus if a type 101 EDIT Guardian file is copied within the Guardian volume, the tar-
get file is also a type 101 EDIT file, with all the line number information preserved. In addition,
if the -p flag is specified, other Guardian file attributes (such as user ID, file security, and times-
tamps) are preserved in the same manner they are preserved with the TACL command FUP DUP.
If you are copying a Guardian file to the OSS file hierarchy, only the content of the Guardian file
is copied: the Guardian file attributes are not preserved. Likewise, if you are copying an OSS
file to the Guardian file hierarchy, the target file is created as an unstructured Guardian file. Thus
if you copy a Guardian type 101 EDIT file to the OSS file hierarchy and then copy it back to the
Guardian file hierarchy, it will no longer be a Guardian type 101 EDIT file.
If a source file and destination file are determined to be the same, a diagnostic message is written
to the standard error file.
Because of the differences between the Guardian and OSS file systems, the following anomalies
can occur when OSS files are copied to a Guardian destination.
A destination pathname can contain illegal /G filename characters, even after it
has been transformed into a /G pathname. As a result, the destination file 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 filename abcde.fghi
is converted into the /G filename ABCDEFGH. In this example, the copy
operation succeeds but the name of the newly created destination file might
cause confusion if it is not anticipated.
OSS filenames that are similar to each other might be converted into the same /G
filename when copied to the Guardian file system.
If a source directory contains more than two levels of directories (the maximum
that the Guardian file 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 Specifies 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.
527188-021 Hewlett-Packard Company 2105