Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 1998 12:37:29 -0700 (PDT)
From:      archie@whistle.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/7117: flex -I option is broken
Message-ID:  <199806291937.MAA29644@bubba.whistle.com>

next in thread | raw e-mail | index | archive | help

>Number:         7117
>Category:       bin
>Synopsis:       flex -I option is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 29 12:40:00 PDT 1998
>Last-Modified:
>Originator:     Archie Cobbs
>Organization:
Whistle Communications, Inc.
>Release:        FreeBSD 2.2.6-RELEASE i386
>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.

>Audit-Trail:
>Unformatted:

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?199806291937.MAA29644>