Date: Tue, 6 Aug 1996 12:35:57 -0600 (MDT) From: Nate Williams <nate@mt.sri.com> To: Brian Clapper <bmc@telebase.com> Cc: nate@mt.sri.com, questions@freebsd.org Subject: Re: ``tgrep'' from Unix Power Tools Message-ID: <199608061835.MAA28375@rocky.mt.sri.com> In-Reply-To: <199608061813.OAA08918@telebase.com.> References: <199608061813.OAA08918@telebase.com.>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > ./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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608061835.MAA28375>