main.c (146310) | main.c (219081) |
---|---|
1/* $NetBSD: main.c,v 1.94 2005/05/13 05:03:49 lukem Exp $ */ 2 3/*- 4 * Copyright (c) 1996-2004 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Luke Mewburn. --- 693 unchanged lines hidden (view full) --- 702 /* 703 * attempt to el_parse() unknown commands. 704 * any command containing a ':' would be parsed 705 * as "[prog:]cmd ...", and will result in a 706 * false positive if prog != "ftp", so treat 707 * such commands as invalid. 708 */ 709 if (strchr(margv[0], ':') != NULL || | 1/* $NetBSD: main.c,v 1.94 2005/05/13 05:03:49 lukem Exp $ */ 2 3/*- 4 * Copyright (c) 1996-2004 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Luke Mewburn. --- 693 unchanged lines hidden (view full) --- 702 /* 703 * attempt to el_parse() unknown commands. 704 * any command containing a ':' would be parsed 705 * as "[prog:]cmd ...", and will result in a 706 * false positive if prog != "ftp", so treat 707 * such commands as invalid. 708 */ 709 if (strchr(margv[0], ':') != NULL || |
710 !editing || |
|
710 el_parse(el, margc, (const char **)margv) != 0) 711#endif /* !NO_EDITCOMPLETE */ 712 fputs("?Invalid command.\n", ttyout); 713 continue; 714 } 715 if (c->c_conn && !connected) { 716 fputs("Not connected.\n", ttyout); 717 continue; --- 334 unchanged lines hidden --- | 711 el_parse(el, margc, (const char **)margv) != 0) 712#endif /* !NO_EDITCOMPLETE */ 713 fputs("?Invalid command.\n", ttyout); 714 continue; 715 } 716 if (c->c_conn && !connected) { 717 fputs("Not connected.\n", ttyout); 718 continue; --- 334 unchanged lines hidden --- |