Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

nd(1) OSS Shell and Utilities Reference Manual
-xdev Always TRUE; causes the nd command to not traverse down into a le system
different from the one on which the current pathname resides. If any -xdev expression is
specied, it applies to the entire expression even if the -xdev expression would not nor-
mally be evaluated.
The primaries can be combined using the following operators (in descending order of
precedence):
( expression )
TRUE if expression is TRUE.
! expression
The negation of a primary (! is the unary not operator).
expression [-a] expression
Concatenation of primaries (the and operation is implied by the juxtaposition of two pri-
maries or can be explicitly stated as -a). The second expression is not evaluated if the rst
expression is FALSE.
expression -o expression
Alternation of primaries (-o is the or operator). The second expression is not evaluated if
the rst expression is TRUE.
If no expression is present, -print is used as the expression; otherwise, if the given expression
does not contain any of the expressions -exec, -ok,or-print, the given expression is effectively
replaced by the following:
( expression )-print
The -user, -group, and -newer expressions each evaluate their respective arguments only once.
To avoid unpredictable results when using a range expression to match a class of characters, use a
character class expression rather than a standard range expression. For information about charac-
ter class expressions, see the reference page for the grep command.
Access Control Lists (ACLs)
The -acl expression enables the user to search for access control list (ACL) entries. The expression |
TRUE if the les access control list matches an access control list pattern or contains optional |
ACL entries (see the acl(5) reference page). The -acl expression has three forms:
-acl aclpatt Match all les that have ACLs that include all (zero or more) pattern entries |
specied by the aclpatt pattern.
-acl =aclpatt Match a le only if its ACL includes all (zero or more) pattern entries specied by |
the aclpatt pattern, and every entry in its ACL is matched by at least one pattern |
entry specied in the aclpatt pattern.
-acl opt Match all les that have ACLs that include optional ACL entries. |
By default, -acl is TRUE for les that have access control lists that include all the access control |
list patterns in aclpatt. The ACL for a le can also contain unmatched entries. |
If aclpatt begins with =, the remainder of the string must match all entries in the access control list |
of the le. |
An aclpatt consists either of a type eld, an ID eld, and a mode eld, or a type eld and a mode |
eld. The elds are separated by colons. You can specify multiple comma-separated aclpatts.|
The type eld is one of user, group, class, other or *, optionally preceded by default:. The |
literals user, group, class, other, and default can be abbreviated to u, g, c, o, and d, respectively. |
3140 Hewlett-Packard Company 527188-007