X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frepl.c;h=d3a8d078ad60d566fc5ddb8a126f1eb8ec81335e;hb=7736b0a60c15cc20db0ba8c3e0fe8e11d1c78c20;hp=67155fa5db55f8058ef4074a06c16f202b010e28;hpb=3c9700d8d045f3ff26ce5dd2a174454dafc14822;p=mmh diff --git a/uip/repl.c b/uip/repl.c index 67155fa..d3a8d07 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -64,11 +64,11 @@ static struct swit switches[] = { #define HELPSW 26 { "help", 4 }, #define FILESW 27 - { "file file", -4 }, /* interface from msh */ + { "file file", 4 }, /* interface from msh */ #ifdef MHE #define BILDSW 28 - { "build", -5 }, /* interface from mhe */ + { "build", 5 }, /* interface from mhe */ #endif { NULL, 0 } @@ -108,9 +108,9 @@ static struct swit aqrl[] = { { NULL, 0 } }; -short ccto = 1; /* global for replsbr */ -short cccc = 1; -short ccme = 1; +short ccto = -1; /* global for replsbr */ +short cccc = -1; +short ccme = -1; short querysw = 0; short outputlinelen = OUTPUTLINELEN; @@ -323,6 +323,13 @@ main (int argc, char **argv) } } + if (ccto == -1) + ccto = groupreply; + if (cccc == -1) + cccc = groupreply; + if (ccme == -1) + ccme = groupreply; + cwd = getcpy (pwd ()); if (!context_find ("path"))