Bugzilla – Bug 714
editor option executes in reverse order
Last modified: 2015-11-01 15:26:31 MST
Defaults editor = "/usr/bin/nano:/usr/bin/vim" Currently this would execute vim first and then nano if vim couldn't be found. My EDITOR, SUDO_EDITOR, and VISUAL environment variables are undefined. If I define one of those, it correctly uses what I defined the variable with.
Created attachment 457 [details] Stop after finding the first valid editor The attached patch fixes the problem.
Fixed in sudo 1.8.15