Page MenuHomeSolus

$EDITOR empty by default? Bad default?
Closed, ResolvedPublic

Description

I'm not extremely knowledgeable about bash and environment variables, so excuse me if I'm wrong.

Is $EDITOR variable empty by default? Would it be a good default to be set as nano?

Event Timeline

skmlcd created this task.Jan 28 2017, 5:41 PM
DataDrake added a subscriber: DataDrake.EditedJan 28 2017, 9:24 PM

There is no editor installed by default. So setting one would mean referencing a missing binary. and if we had nano set it, it would create conflicts if another user wanted vim instead.

skmlcd added a comment.EditedJan 28 2017, 10:22 PM

I thought nano is already installed by default. If EDITOR is not set then some bash commands like edit-and-execute-command don't work by default.

I know this is trivially set by user, I was just thinking if a good default would be to add 1 line in .bashrc file which user can easily change.

I'm just guessing here, not sure if this is the best way.

nano is not part of the base install. It hasn't been since 1.2 iirc. The sane default in this case is not to set anything at all. We can't let the packages set it (which one gets priority?) and there is no editor in the base install so we can't set it to that. Remember, Solus is targeting home computing. If you've got to open a terminal as a typical user, we've failed in some way.

Alright, thanks for explaining. It is not really a problem since it is really easy to set it manually. :)

DataDrake closed this task as Resolved.Jan 28 2017, 10:31 PM
DataDrake claimed this task.

FWIW I run into it on fresh installs too since I'm a dev. So no worries.