diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2019-09-11 07:03:17 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2019-09-11 07:03:17 +0000 |
commit | 96c81c97e4c0ec5f79873b5f19ad553584e87803 (patch) | |
tree | 91b7a90bf60554e9ec82be7c37b7a65b136bdf13 /contrib/libedit/filecomplete.c | |
parent | 07f7e4c8b0f12a7e81bc1dfbfcf972265b01cf42 (diff) | |
download | src-96c81c97e4c0ec5f79873b5f19ad553584e87803.tar.gz src-96c81c97e4c0ec5f79873b5f19ad553584e87803.zip |
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
Notes
Notes:
svn path=/head/; revision=352204
Diffstat (limited to 'contrib/libedit/filecomplete.c')
-rw-r--r-- | contrib/libedit/filecomplete.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); +} |