I came across the notion of primaries from running
. . . PRIMARIES All primaries which take a numeric argument allow the number to be preceded by a plus sign (``+'') or a minus sign (``-''). A preceding plus sign means ``more than n'', a pre- ceding minus sign means ``less than n'' and neither means ``exactly n''. . . -depth n True if the depth of the file relative to the starting point of the traversal is n.
Searching POSIX documentation for "primaries" turned up no results.
Doing a little bit of exploring, it looks like primaries are different from switches and flags because they appear after the switches, flags, and main arguments:
$ find -depth 1 . find: illegal option -- e usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression] $ find . -depth 1 ./.DS_Store ./.vagrant ./foo ./some
- What are primaries?
- Is there any documentation I can read about them?
- How are they different from switches or flags?