From owner-freebsd-bugs Wed Oct 27 11: 8:55 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id F159F14BD2; Wed, 27 Oct 1999 11:08:52 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.2/8.9.2) id LAA04410; Wed, 27 Oct 1999 11:08:48 -0700 (PDT) From: Archie Cobbs Message-Id: <199910271808.LAA04410@bubba.whistle.com> Subject: Re: bin/7117: flex -I option is broken In-Reply-To: <199910270806.BAA36017@freefall.freebsd.org> from "obrien@FreeBSD.org" at "Oct 27, 1999 01:06:45 am" To: obrien@FreeBSD.org Date: Wed, 27 Oct 1999 11:08:48 -0700 (PDT) Cc: freebsd-bugs@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org obrien@FreeBSD.org writes: > Synopsis: flex -I option is broken > > State-Changed-From-To: suspended->closed > State-Changed-By: obrien > State-Changed-When: Wed Oct 27 01:04:57 PDT 1999 > State-Changed-Why: > Man page clearly states "%option interactive" == -I. It also states > "%option always-interactive" as a seperate option from just "interactive". > IMHO, the manpage is clear. Diff's would be gladly accepted if others > feel it isn't. OK, I see now. I still think the man page is unclear .. see patch below. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com Index: lex.1 =================================================================== RCS file: /cvs/freebsd/src/usr.bin/lex/lex.1,v retrieving revision 1.8 diff -u -r1.8 lex.1 --- lex.1 1998/10/01 19:40:27 1.8 +++ lex.1 1999/10/27 18:10:16 @@ -1904,6 +1904,7 @@ flag below). A non-zero value in the macro invocation marks the buffer as interactive, a zero value as non-interactive. Note that use of this macro overrides +.B %option interactive , .B %option always-interactive or .B %option never-interactive @@ -2310,6 +2311,14 @@ .B \-CF. Thus, this option is not really needed; it is on by default for all those cases in which it is allowed. +.IP +Note that if +.B isatty() +returns false for the scanner input, flex will revert to batch mode, even if +.B \-I +was specified. To force interactive mode no matter what, use +.B %option always-interactive +(see Options below). .IP You can force a scanner to .I not To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message