git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb on OpenBSD (-T not supported on filesystems...)

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Sep 17, 2006, 15:07 UTC
Message-ID
<864pv6sfag.fsf@blue.stonehenge.com>
In-Reply-To
<eej5qa$i3o$1@sea.gmane.org>
>>>>> "Jakub" == Jakub Narebski <jnareb@gmail.com> writes:

Jakub> I thought that OpenBSD has perhaps distributed some old Perl version that Jakub> doesn't have -X tests (including -T/-B) on filehandles.

Show 5 quoted lines
>> When I try the original -T $fd I get: 
>> 
>> Software error:
>> -T and -B not implemented on filehandles at /var/www/htdocs/git/gitweb.cgi  
>> line 1598.
Jakub> So this means that Perl implementation in OpenBSD is flawed.
No, see "perldoc perldiag":
       "-T" and "-B" not implemented on filehandles
           (F) Perl can't peek at the stdio buffer of filehandles when it
           doesn't know about your kind of stdio.  You'll have to use a file-
           name instead.

So the problem is that OpenBSD has a stdio that is not what the Perl authors anticipated, because it requires peeking behind official interfaces. Perl isn't flawed. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Previous: Jakub Narebski
Message 5 of 5 in “gitweb on OpenBSD (-T not supported on filesystems...)”
  1. Andrew PammentSep 17, 2006
  2. Jakub NarebskiSep 17, 2006
  3. Andrew PammentSep 17, 2006
  4. Jakub NarebskiSep 17, 2006
  5. Randal L. SchwartzSep 17, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.