From 3d0f8bcd307dfefacba6d1ec6875b235d08ea16b Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 15 Jun 2010 21:34:57 +0000 Subject: libedit: Allow simple quoting in filename completion. The completer recognizes characters escaped with backslashes as being literal parts of a word, and adds backslashes to avoid almost all misinterpretation. In particular, filenames containing spaces can be completed correctly. For bug compatibility with the NetBSD version, the improved completion function has a new name, _el_fn_sh_complete, and _el_fn_complete is unchanged. Submitted by: Guy Yur --- include/histedit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/histedit.h b/include/histedit.h index cb6e4d6428911..3f158dbb78207 100644 --- a/include/histedit.h +++ b/include/histedit.h @@ -106,6 +106,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 -- cgit v1.3