From owner-freebsd-bugs Mon Jun 29 12:41:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA23092 for freebsd-bugs-outgoing; Mon, 29 Jun 1998 12:41:04 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA23079 for ; Mon, 29 Jun 1998 12:40:55 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA16760; Mon, 29 Jun 1998 12:40:01 -0700 (PDT) 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 ; 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 ; 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 X-Send-Pr-Version: 3.2 Subject: bin/7117: flex -I option is broken Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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