diff options
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r-- | bin/sh/histedit.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 37a10bf..ae39c0b 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -480,6 +480,16 @@ str_to_event(char *str, int last) } return (he.num); } + +int +bindcmd(int argc, char **argv) +{ + + if (el == NULL) + error("line editing is disabled"); + return (el_parse(el, argc, argv)); +} + #else #include "error.h" @@ -491,4 +501,12 @@ histcmd(int argc, char **argv) /*NOTREACHED*/ return (0); } + +int +bindcmd(int argc, char **argv) +{ + + error("not compiled with line editing support"); + return (0); +} #endif |