When I look in man bash
none of these are defined. However, random posts online refer to them; where do they come from? Or are they just a convention?
Environment Variables – Origin of EDITOR, PAGER, BROWSER Variables
environment-variables
environment-variables
When I look in man bash
none of these are defined. However, random posts online refer to them; where do they come from? Or are they just a convention?
Best Answer
They are just a convention as much as any other convention.
EDITOR
andPAGER
are mentioned in the standards as belonging to variables you'd be unwise to conflict with since they are widely used. See Chapter 8, Section 1:Various programs respect various combinations of them:
man 1 crontab
(POSIX):man 8 sudoedit
:man 1 man
(POSIX):It is not surprising that the
bash
manual doesn't mention them, as none of the bash builtins that I can think of make use of any of these. However, they are widely used in other utilities, and these three are just the ones that I commonly use.The
BROWSER
variable is not in the same league asEDITOR
orPAGER
- it is not mentioned by the standards. However, some programs may use them, likeman
:man 1 man
(Debian):