From owner-freebsd-questions Tue Aug 6 11:36:09 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA07737 for questions-outgoing; Tue, 6 Aug 1996 11:36:09 -0700 (PDT) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA07730 for ; Tue, 6 Aug 1996 11:36:06 -0700 (PDT) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id MAA28375; Tue, 6 Aug 1996 12:35:57 -0600 (MDT) Date: Tue, 6 Aug 1996 12:35:57 -0600 (MDT) Message-Id: <199608061835.MAA28375@rocky.mt.sri.com> From: Nate Williams To: Brian Clapper Cc: nate@mt.sri.com, questions@freebsd.org Subject: Re: ``tgrep'' from Unix Power Tools In-Reply-To: <199608061813.OAA08918@telebase.com.> References: <199608061813.OAA08918@telebase.com.> Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > ./tgrep the tgrep > > > -T and -B not implemented on filehandles at (eval) line 7. > > man perlfunc > > -X A file test, where X is one of the letters listed > below. > ... > -T File is a text file. > -B File is a binary file (opposite of -T). ... > It produces the `-T and -B not implemented on filehandles' > error on FreeBSD (I'm running 2.2-960323-SNAP) using 4.036 or 5.002; it > also fails with the same error under perl4.036 on an old Linux (1.2.x) box > we have here. That's because those test requires the STDIO package that is used in the original Unix, which was re-implemented by Chris Torke in 4.4BSD. If you feel ambitious you could re-write the test using the internals of the BSD stdio. See perl/perl/doio.c, and look for 'STDSTDIO'. Nate