From 96c81c97e4c0ec5f79873b5f19ad553584e87803 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 11 Sep 2019 07:03:17 +0000 Subject: Readd _el_fn_sh_complete for backward compatibility This function is not needed anymore, it allows old sh binary to continue to run and avoid breaking backward compatibility. Note that is now just calls the regular _el_fn_complete which does a proper job at quoting. Discussed with: jilles --- contrib/libedit/filecomplete.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'contrib/libedit/filecomplete.c') diff --git a/contrib/libedit/filecomplete.c b/contrib/libedit/filecomplete.c index 8dd14c7f2d44..662a0bb85d0b 100644 --- a/contrib/libedit/filecomplete.c +++ b/contrib/libedit/filecomplete.c @@ -823,3 +823,13 @@ _el_fn_complete(EditLine *el, int ch __attribute__((__unused__))) break_chars, NULL, NULL, (size_t)100, NULL, NULL, NULL, NULL); } + +/* + * el-compatible wrapper around rl_complete; needed for key binding + */ +/* ARGSUSED */ +unsigned char +_el_fn_sh_complete(EditLine *el, int ch) +{ + return _el_fn_complete(el, ch); +} -- cgit v1.2.3