Is shell variable EDITOR obsolete?
I looked at these links:
https://bash.cyberciti.biz/guide/Variables http://askubuntu.com/questions/27596...current-values But I am unable to find shell variable EDITOR using command: set or declare -p Is shell variable EDITOR obsolete? If not, how do I find it? |
This may help: http://unix.stackexchange.com/questi...ommand-in-bash
Then there's this: http://askubuntu.com/questions/43252...nment-variable |
You can not find EDITOR as it is likely not set. If an environment variable has not been defined, then it will not show up in printenv or similar commands.
add Code:
export EDITOR=... For a single shell session, you can type the above at a shell prompt. Be aware that it will no longer be set once you exit the shell. |
Quote:
Thank you. It looks like the shell variable EDITOR does not exists until the user defines it. |
It is checked by some utils eg 'crontab -e ..' will look for it.
|
Yes, in multi-seat computer systems with interactive shells and a number of editors
Code:
export EDITOR=vi |
It's used by things like visudo when it's set. Since they all default to vi, it would only be set if (like me!) you want to avoid the use of vi.
|
All times are GMT -5. The time now is 03:40 AM. |