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
This commit is contained in:
parent
07f7e4c8b0
commit
96c81c97e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352204
@ -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);
|
||||
}
|
||||
|
@ -113,6 +113,7 @@ int el_parse(EditLine *, int, const char **);
|
||||
int el_set(EditLine *, int, ...);
|
||||
int el_get(EditLine *, int, ...);
|
||||
unsigned char _el_fn_complete(EditLine *, int);
|
||||
unsigned char _el_fn_sh_complete(EditLine *, int);
|
||||
|
||||
/*
|
||||
* el_set/el_get parameters
|
||||
|
Loading…
Reference in New Issue
Block a user