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

rm(1) OSS Shell and Utilities Reference Manual
sion for its parent directory, but you need neither read nor write permission for the file itself.
If a file has no write permission and standard input is a tty:
If the system does not support OSS ACLs, the rm command displays the file permission
code and reads a line from standard input. If that line begins with y, or the locales
equivalent of a y, rm deletes the file. If the response is anything else, the rm command
does nothing to that file and continues with the next specified file.
If the system supports OSS ACLs, the rm command displays the file name and the file
permissions and reads a line from standard input. If that line begins with y, or the
locale’s equivalent of a y, rm deletes the file. If the response is anything else, the rm
command does nothing to that file and continues with the next specified file.
If the -f option is used or the standard input is not a tty, rm does not display any prompts.
If the file has optional ACL entries, the rm command displays a plus sign (+) after the
file permissions. The permissions shown by the rm command summarize the st_mode
values returned
by the stat() function (see the stat(2) reference page). If you execute the rm command
remotely from a system that does not support OSS ACLs, rm does not display a plus sign
(+) for files that have optional ACLs.
For more information about ACLs, see the acl(5) reference page.
The -i flag causes rm to prompt and read the standard input even if the standard input is not a ter-
minal. In the absence of -i, however, rm does not prompt when the standard input is not a termi-
nal.
Environment Variables
The following environment variables affect the execution of the rm command:
LC_MESSAGES
Determines the locales 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:
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 flag in the command.
754 Hewlett-Packard Company 527188-021