Previous: Regular Expressions, Up: Reference


7.6 Environment Variables

LANG
Provides a default value for the internationalisation variables that are unset or null.
LC_ALL
If set to a non-empty string value, override the values of all the other internationalisation variables.
LC_COLLATE
The POSIX standard specifies that this variable affects the pattern matching to be used for the `\-name' option. GNU find uses the GNU version of the fnmatch library function.

POSIX also specifies that the `LC_COLLATE' environment variable affects the interpretation of the user's response to the query issued by `\-ok', but this is not the case for GNU find.

LC_CTYPE
This variable affects the treatment of character classes used with the ‘-name’ test, if the system's fnmatch library function supports this. It has no effect on the behaviour of the ‘-ok’ expression.
LC_MESSAGES
Determines the locale to be used for internationalised messages.
NLSPATH
Determines the location of the internationalisation message catalogues.
PATH
Affects the directories which are searched to find the executables invoked by ‘-exec’, ‘-execdir’ ‘-ok’ and ‘-okdir’. If the PATH environment variable includes the current directory (by explicitly including ‘.’ or by having an empty element), and the find command line includes ‘-execdir’ or ‘-okdir’, find will refuse to run. See Security Considerations, for a more detailed discussion of security matters.
POSIXLY_CORRECT
Determines the block size used by ‘-ls’ and ‘-fls’. If POSIXLY_CORRECT is set, blocks are units of 512 bytes. Otherwise they are units of 1024 bytes.

Setting this variable also turns off warning messages (that is, implies ‘-nowarn’) by default, because POSIX requires that apart from the output for ‘-ok’, all messages printed on stderr are diagnositcs and must result in a non-zero exit status.

Arguments to ‘-perm’ beginning with ‘+’ are treated differently when POSIXLY_CORRECT is set. See -perm.

TZ
Affects the time zone used for some of the time-related format directives of ‘-printf’ and ‘-fprintf’.