On Tuesday, April 17, 2001, at 11:23  PM, Ken Williams wrote:

> Further very bizarre info-
>
> Another user (Alexandre Siufy) told me that on his system /usr/bin/head
> is indeed the opposite of 'tail'.  So it may just be me.

        I am sorry I emailed the previous answer directly to you...

> BUT, when I look at the directory /usr/bin/, no 'head' file is there.
> This is inconsistent, since `which head` reports /usr/bin/head, and
> `less /usr/bin/head` shows me the contents of a Perl script.  And
> `perl -le 'print -e "/usr/bin/head"'` outputs 1.
>
> But unless I'm going crazy, there's no 'head' in the output below:
>
> [localhost:/] ken% cd /usr/bin
> [localhost:/usr/bin] ken% ls h*
> h2ph*            hdiutil*         hexdump*         hoststat@        
> htpasswd*
> h2xs*            headerdoc2html*  host*            hpftodit*
> hdid*            heap*            hostinfo*        htdigest*
> [localhost:/usr/bin] ken%
>
> Does this mean my disk is damaged or inconsistent or something?

        You might have a problem there... My /usr/bin has all of those 13 
files, plus "head". Something you installed might've deleted the 
original 'head' file...
        If you want, I can send you my binary...

>
> [EMAIL PROTECTED] (Ken Williams) wrote:
>> Yo,
>>
>> I was getting some bizarre output when compiling Apache, and it seemed
>> like the 'head' shell command wasn't working properly.  It turns out
>> that /usr/bin/head is a Perl script for performing an HTTP 'HEAD'
>> request, instead of the more standard 'head' program for viewing the
>> first part of a file.
>>
>> Doing 'man head' gives the BSD manual page for the 'head' command I
>> expected.
>>
>> Can anyone confirm this on their system?
>>
>> Are there any other Unix systems that do this?  I thought 'head' was
>> pretty standard as the opposite of 'tail'.
>>
>>
>>  -------------------                            -------------------
>>  Ken Williams                             Last Bastion of Euclidity
>>  [EMAIL PROTECTED]                            The Math Forum
>>
>
>   -------------------                            -------------------
>   Ken Williams                             Last Bastion of Euclidity
>   [EMAIL PROTECTED]                            The Math Forum
>

--
Alexandre Siufy
[EMAIL PROTECTED]
-Microsoft has performed an illegal operation and will be shut down-

Reply via email to