Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
User Commands (m - o) mv(1)
2. The mv command reads one line from the standard input. |
3. If the response is the first letter of the word yes in the language of the current locale, the |
operation occurs. Otherwise, the operation does not occur, and the command proceeds to |
the next source file, if any.
If a mv operation fails, mv generally writes a diagnostic message to standard error, does nothing
more with the current source file, and goes on to process any remaining source files.
If the copying or removal of a file is prematurely terminated by a signal or error, mv might leave
a partial copy of the file at either the source or the target pathname. The mv program will not
modify both the source and target pathnames simultaneously; therefore, program termination at
any point always leaves either the source file or the target file complete.
Access Control Lists (ACLs)
If optional ACL entries are associated with the new file (file2), the mv command displays a plus |
sign (+) after the access mode when asking for permission to overwrite the file. |
When a file or directory is renamed, all the ACL entries for the file or directory are retained. |
This table describes the impact of ACLs on the permissions used when a new file or directory is |
created by the mv command. Cases not included in the table represent impossible situations.
_______________________________________________________
mv Source Source Dest. Impact of
Command Fileset File/Dir Filesset ACLs on
Supports Supports Has Opt. Supports Permissions
ACLs ACLs ACLs ACLs of New File/Dir
_______________________________________________________
Y/N Y/N N N None
Y/N Y/N N Y See Note 2
Y/N Y Y N See Notes 1 and 3
N Y Y Y See Notes 1 and 2
Y Y Y Y See Note 4
_______________________________________________________
Note 1: The optional ACLs for the source file or directory are not copied to the destina- |
tion file or directory.
Note 2: If the destination parent directory has default ACL entries, those default ACL |
entries are inherited by the new file or directory (see the acl(5) reference page).
Note 3: The file permissions are copied to the destination file or directory and the class |
entry permissions in the ACL are used for the destination file or directory group |
permissions.
Note 4: All ACL entries are retained by the new file or directory. |
Files that have optional ACL entries are not accessible using NFS. For more information, see the |
acl(5) reference page.
Environment Variables
The following environment variables affect the execution of the mv command:
LC_MESSAGES
Determines the locale’s equivalent of y or n (for yes/no queries).
UTILSGE Specifies that HP extensions to the root directory should be omitted when the ini-
tial directory is root and a recursive operation occurs in an OSS shell command.
Application programs that test this variable might also honor its settings.
The UTILSGE value can be any of the following:
527188-007 Hewlett-Packard Company 6−27