Date: Wed, 19 Jun 2002 16:10:07 -0700 (PDT) From: Zak Johnson <zakj@nox.cx> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/32433: Cannot specify files beginning with + on ee command line. Message-ID: <200206192310.g5JNA7h24945@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/32433; it has been noted by GNATS. From: Zak Johnson <zakj@nox.cx> To: freebsd-gnats-submit@FreeBSD.org, kutulu@kutulu.org Cc: Subject: Re: bin/32433: Cannot specify files beginning with + on ee command line. Date: Wed, 19 Jun 2002 19:05:53 -0400 Support for '--' to cancel options list processing has been added to ee as of (at least) the current version, which is available at http://mahon.cwx.net/sources/ee-1.4.5a.src.tgz . Alternately, this patch should do the trick. -Zak --- ee.c.orig Sun Jun 16 00:49:28 2002 +++ ee.c Wed Jun 19 19:00:43 2002 @@ -2051,6 +2051,7 @@ struct files *temp_names = NULL; char *name; char *ptr; + int no_more_opts = FALSE; /* | see if editor was invoked as 'ree' (restricted mode) @@ -2067,7 +2068,7 @@ input_file = FALSE; recv_file = FALSE; count = 1; - while (count < numargs) + while ((count < numargs) && (!no_more_opts)) { buff = arguments[count]; if (!strcmp("-i", buff)) @@ -2096,7 +2097,8 @@ buff++; start_at_line = buff; } + else if (!(strcmp("--", buff))) + no_more_opts = TRUE; else { if (top_of_stack == NULL) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206192310.g5JNA7h24945>