Open hnsk opened 8 years ago
FWIW (and I know this because it upsets me when I forget to configure $EDITOR
on new boxes), Debian defaults to nano
(e.g. in git, visudo, etc.).
git uses
/usr/bin/git-core/editor
/usr/local/bin/editor
/usr/bin/editor
until it finds something. Possibly uses something else as well.
https://github.com/PowerDNS/pdns/pull/4176 fixes this by defaulting to vi if $EDITOR is not set or editor found in path.
I have this error now:
sh: editor: command not found
Error: Editing file with: 'editor /tmp/pdnsutil-5VVukw', perhaps set EDITOR variable: Resource temporarily unavailable
Have you read the actual error message? If you have, which steps did you undertake to solve the problem?
Have you read the actual error message? If you have, which steps did you undertake to solve the problem?
I did not understand, sorry.
sh: editor: command not found
sh: editor: command not found
Yes. I already tried to define an alias to "editor" or define the editor variable for the nano editor path, but it doesn't work My OS is CentOS 7
The variable is called EDITOR
.
$ EDITOR=/path/to/your/favorite/editing/utility
$ export EDITOR
If that doesn't work: show us
$ which nano
EL7 environment doesn't have
which editor
or $EDITOR set by default.This causes the following to happen:
Also the ":Success" in the end is slightly misleading as it succeeded in erroring.
Maybe it should default to vi(m) by default as that is what most applications do (visudo for example) and if someone prefers something else then they most likely have $EDITOR set.