News for hackers. Stuff that matters.
Re:Ask HN: Looking for a Programable Text Editor by jmholla on Monday December 19, 2022 @02:34PM (#34056547)
If you want to handle `$EDITOR` not being set, at least in bash, you can use one of it's parameter expansion features:

    ${EDITOR:-vim}
Will use vim if `$EDITOR` is unset.

There are no comments on this comment yet.