X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=8ff31b1af3569f60f38ca51d119654f8149fb519;hb=79e745223e808aef83c885d94a7a2e58ee8e4ba0;hp=2f3897faf66ccff0481639099185ac8f5de4817b;hpb=69bcd68523a9a8da083faef16887100369152673;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 2f3897f..8ff31b1 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,5 +1,5 @@ /* - * $Id: zoomsh.c,v 1.1 2001-10-23 21:00:20 adam Exp $ + * $Id: zoomsh.c,v 1.3 2001-11-06 17:05:19 adam Exp $ * * ZOOM-C Shell */ @@ -9,9 +9,6 @@ #include #include -#define HAVE_READLINE_READLINE_H 1 -#define HAVE_READLINE_HISTORY_H 1 - #if HAVE_READLINE_READLINE_H #include #endif @@ -32,7 +29,7 @@ static int next_token (const char **cpp, const char **t_start) while (*cp == ' ') cp++; *t_start = cp; - while (*cp && *cp != ' ') + while (*cp && *cp != ' ' && *cp != '\r' && *cp != '\n') { cp++; len++; @@ -149,7 +146,7 @@ static void cmd_show (Z3950_connection *c, Z3950_resultset *r, Z3950_options_set (options, "count", count_str); for (i = 0; i