envygeeks/pry — comment on commit 11f6b53315041fb29f19c2357ea619fda19221cd
File:  line 0
By ConradIrwin:

@envygeeks As far as I can tell `sensible-editor` is just a shell script that implements this logic for us — what's so bad about it? If it is so bad, why do we want to emulate its behaviour at all?

FWIW the code doesn't run `sensible-editor nano vim`, it uses `which` to find the first of those programs that exists, and then calls `sensible-editor ` or `vim ` as appropriate.