From archie@whistle.com  Mon Jun 29 12:38:21 1998
Received: from whistle.com (s205m131.whistle.com [207.76.205.131])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA22597
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Jun 1998 12:38:19 -0700 (PDT)
          (envelope-from archie@whistle.com)
Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id MAA23004 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Jun 1998 12:37:33 -0700 (PDT)
Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3)
	id sma023000; Mon Jun 29 12:37:29 1998
Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id MAA29644; Mon, 29 Jun 1998 12:37:29 -0700 (PDT)
Message-Id: <199806291937.MAA29644@bubba.whistle.com>
Date: Mon, 29 Jun 1998 12:37:29 -0700 (PDT)
From: archie@whistle.com
Reply-To: archie@whistle.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: flex -I option is broken
X-Send-Pr-Version: 3.2

>Number:         7117
>Category:       bin
>Synopsis:       flex -I option is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 29 12:40:00 PDT 1998
>Closed-Date:    Wed Oct 27 01:04:57 PDT 1999
>Last-Modified:  Wed Oct 27 01:06:45 PDT 1999
>Originator:     Archie Cobbs
>Release:        FreeBSD 2.2.6-RELEASE i386
>Organization:
Whistle Communications, Inc.
>Environment:

	FreeBSD 2.2.6-RELEASE
	flex version 2.5.4

>Description:

	Flex has an option "-I" which is supposed to make the scanner
	interactive. This is the default anyway, so -I is probably not
	used. However, if isatty(input) == 0, then flex will switch
	the scanning to batch mode, EVEN IF -I WAS SPECIFIED ON THE
	COMMAND LINE.

	In other words, the man page makes it look like setting -I
	on the command line is equivalent to %option always-interactive.

	However, this is not the behavior. Even with -I, if the input
	is not isatty(), then flex goes into batch mode.

>How-To-Repeat:

	flex -I file.l
	parse taking input from a tcp connection, for example

>Fix:

	Make -I equivalent to %option always-interactive, or else
	fix the man page to reflect reality.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Tue Jun 30 03:53:45 PDT 1998 
State-Changed-Why:  
awaiting committer 
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. 
>Unformatted:
