Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 1999 11:08:48 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        obrien@FreeBSD.org
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/7117: flex -I option is broken
Message-ID:  <199910271808.LAA04410@bubba.whistle.com>
In-Reply-To: <199910270806.BAA36017@freefall.freebsd.org> from "obrien@FreeBSD.org" at "Oct 27, 1999 01:06:45 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910271808.LAA04410>