Previous: , Up: Reference   [Contents][Index]

8.6 Environment Variables


Provides a default value for the internationalisation variables that are unset or null.


If set to a non-empty string value, override the values of all the other internationalisation variables.


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.

This variable also affects the interpretation of the response to -ok; while the LC_MESSAGES variable selects the actual pattern used to interpret the response to -ok, the interpretation of any bracket expressions in the pattern will be affected by the LC_COLLATE variable.


This variable affects the treatment of character classes used in regular expression and with the ‘-name’ test, if the fnmatch function supports this.

This variable also affects the interpretation of any character classes in the regular expressions used to interpret the response to the prompt issued by -ok. The LC_CTYPE environment variable will also affect which characters are considered to be unprintable when filenames are printed (see Unusual Characters in File Names).


Determines the locale to be used for internationalised messages, including the interpretation of the response to the prompt made by the -ok action.


Determines the location of the internationalisation message catalogues.


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.


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 diagnostics and must result in a non-zero exit status.

When POSIXLY_CORRECT is set, the response to the prompt made by the -ok action is interpreted according to the system’s message catalogue, as opposed to according to find’s own message translations.


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

Previous: , Up: Reference   [Contents][Index]