summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorRichard Sharpe <rsharpe@samba.org>2015-09-18 16:19:54 -0700
committerJeremy Allison <jra@samba.org>2015-10-07 04:16:24 +0200
commit9893888c5195ea6ebb7566a0277c6723aa4c81a1 (patch)
tree75cfe57d4eee9ff6605b344360d0da4cc6377045 /libcli
parent1bb46dae829d9cd74534669371246ada86b5841a (diff)
downloadsamba-9893888c5195ea6ebb7566a0277c6723aa4c81a1.tar.gz
Change the libreadline word-break character set to only space, TAB and NL so that we can attempt to do tab completion across backslashes.
This turned out to be all that was needed to enable cd to handle multiple directory levels. Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Oct 7 04:16:24 CEST 2015 on sn-devel-104
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smbreadline/smbreadline.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcli/smbreadline/smbreadline.c b/libcli/smbreadline/smbreadline.c
index 80e10b0071c..c58555400ca 100644
--- a/libcli/smbreadline/smbreadline.c
+++ b/libcli/smbreadline/smbreadline.c
@@ -137,6 +137,12 @@ char *smb_readline(const char *prompt, void (*callback)(void),
works in all of them to date, but we get compiler
warnings in some. */
rl_attempted_completion_function = RL_COMPLETION_CAST completion_fn;
+
+ /*
+ * We only want sensible characters as the word-break chars
+ * for the most part. This allows us to tab through a path.
+ */
+ rl_basic_word_break_characters = " \t\n";
}
#if HAVE_DECL_RL_EVENT_HOOK