Skip to content

Conversation

@squell
Copy link
Member

@squell squell commented Dec 15, 2025

On Linux, there is no clearly established "default", but "nano" and "vi" are obvious choices.

On FreeBSD, "vi" comes with the base system so is the clear default

@squell squell linked an issue Dec 15, 2025 that may be closed by this pull request
@squell squell added C-operatingsystem Low-level glue layers portability and removed C-operatingsystem Low-level glue layers labels Dec 15, 2025
@squell squell force-pushed the detect-editor branch 2 times, most recently from 124dfb1 to 8bc7a48 Compare December 16, 2025 10:06
are obvious choices. Let's use a `Defaults editor` value that reflect
this. (Making choices at compile-time instead of through configuration
files is anachronistic in ogsudo as well.)

On FreeBSD, "vi" comes with the base system so is the clear default.
see the comment in the test; it now tests what it purports to test for
@squell squell merged commit 6a36b16 into main Dec 16, 2025
17 checks passed
@squell squell deleted the detect-editor branch December 16, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use vi as default editor, like C-based sudo?

3 participants