简体   繁体   中英

linux - Purpose of the LISTER shell variable

I'm trying to find what exactly a LISTER shell variable is used for. I'm doubting that it is for listing all the environmental variables but couldn't able to use it and also couldn't find it using man LISTER .

The LISTER environment variable is used by the mailx command to list folders. The default value is simply ls .

Documentation from the Single Unix Specification

LISTER

Determine a string representing the command for writing the contents of the folder directory to standard output when the folders command is given (see folders in Commands in mailx). Any string acceptable as a command_string operand to the sh -c command shall be valid. If this variable is null or not set, the output command shall be ls. The effects of this variable are unspecified if the User Portability Utilities option is not supported.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM