From df0a99a2d27003381a9b9d643ede5bfb37bd34bc Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 30 Oct 2016 19:56:34 +0100 Subject: [PATCH] Add suggestion to use ed(1) if installed. --- utils/command-not-found.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/command-not-found.c b/utils/command-not-found.c index ce716a1f..7cd9e864 100644 --- a/utils/command-not-found.c +++ b/utils/command-not-found.c @@ -27,6 +27,8 @@ void suggest_editor(const char* filename) { fprintf(stderr, "No command '%s' found, did you mean:\n", filename); + if ( access("/bin/ed", X_OK) == 0 ) + fprintf(stderr, " Command 'ed' from package 'ed'\n"); fprintf(stderr, " Command 'editor' from package 'editor'\n"); if ( access("/bin/vim", X_OK) == 0 ) fprintf(stderr, " Command 'vim' from package 'vim'\n");