From 72ec8e997beac9551685b7939dda34b024a41d29 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 21 Jan 2022 21:48:05 -0500 Subject: dash: Bind libedit's secret filename completion function Check if the FreeBSD (and by extension macOS) _el_fn_sh_complete version of the function exists, which does shell escaping of completed filenames before _el_fn_complete learned to. Tab is bound after calling el_set() and el_source() since the default bindings set tab to something else, and it should always be filename completion in the shell. --- config.h.in | 1 + 1 file changed, 1 insertion(+) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index 382ad35..67341e0 100644 --- a/config.h.in +++ b/config.h.in @@ -21,4 +21,5 @@ #cmakedefine HAVE_FNMATCH #cmakedefine HAVE_GLOB #cmakedefine HAVE_ST_MTIM +#cmakedefine HAVE__EL_FN_SH_COMPLETE #cmakedefine WITH_LINENO -- cgit 1.4.1