From e337caeed1459f876449611ae1684616d0ea8f55 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 26 Sep 2005 15:15:50 +0000 Subject: r10509: Some more sconscript fixes. Now getting to link stage for smbclient (This used to be commit 6df956edbab7ad5e72b2f20e74ab0f0d62528932) --- source4/client/client.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'source4/client') diff --git a/source4/client/client.c b/source4/client/client.c index 1e41924321..bd40c97efd 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -2610,6 +2610,27 @@ static int cmd_lcd(const char **cmd_ptr) return 0; } +/**************************************************************************** +history +****************************************************************************/ +static int cmd_history(const char **cmd_ptr) +{ +#if defined(HAVE_LIBREADLINE) + HIST_ENTRY **hlist; + int i; + + hlist = history_list(); + + for (i = 0; hlist && hlist[i]; i++) { + DEBUG(0, ("%d: %s\n", i, hlist[i]->line)); + } +#else + DEBUG(0,("no history without readline support\n")); +#endif + + return 0; +} + /**************************************************************************** get a file restarting at end of local file ****************************************************************************/ -- cgit