[systemd-devel] [PATCH] systemctl: add edit verb

Lennart Poettering lennart at poettering.net
Fri Oct 17 05:15:35 PDT 2014


On Fri, 17.10.14 13:30, David Timothy Strauss (david at davidstrauss.net) wrote:

> On Fri, Oct 17, 2014 at 1:24 PM, Lennart Poettering
> <lennart at poettering.net> wrote:
> > Does this make sense?
> 
> Speaking as a nano user and someone who barely knows how to quit vim,
> I still think the decision of the default editor should be "vi" or the
> distribution's choice.

Well, what's the distribution's choice? I mean, if distributions want
to change things they can patch this in, they have that option anyway...

Note that with the order i proposed, systems that have no "nano"
installed will effectively only get vi/vim invoked here. I think nano
is mostly installed only on systems where it also is the default, or
where the user wants to use it, hence it's probably a good default,
since there's reason enough to believe that if it is available it
shall be used, and if it shall not be used it's probably not
installed...

In a way this mimics Debian's behaviour I figure, which also defaults
to "nano" in sensible-editor, currently, AFAIK...

That all said, this topic kinda enters bikeshed territory, so I figure
we should just implement some alg, and stick with it.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list