From owner-freebsd-bugs Wed Jun 19 16:10:53 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1A85837B40A for ; Wed, 19 Jun 2002 16:10:07 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5JNA7h24945; Wed, 19 Jun 2002 16:10:07 -0700 (PDT) (envelope-from gnats) Date: Wed, 19 Jun 2002 16:10:07 -0700 (PDT) Message-Id: <200206192310.g5JNA7h24945@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Zak Johnson Subject: Re: bin/32433: Cannot specify files beginning with + on ee command line. Reply-To: Zak Johnson Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/32433; it has been noted by GNATS. From: Zak Johnson 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