delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/27/11:47:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 27 Sep 2002 17:46:39 +0200
From: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <136369168436.20020927174639@familiehaase.de>
To: Igor Pechtchanski <cygwin AT cygwin DOT com>
Subject: Re: Question for perl gurus: what creates /bin/{HEAD|GET|POST}?
In-Reply-To: <Pine.GSO.4.44.0209271041050.17538-100000@slinky.cs.nyu.edu>
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0209271041050 DOT 17538-100000 AT slinky DOT cs DOT nyu DOT edu>
MIME-Version: 1.0

Igor schrieb:

> A question for the perl gurus:

> I noticed that I have 3 files in /bin: HEAD, GET, and POST.  These are
> interfaces to the LWP library.  Does anyone know what creates them?
> Looking at the creation times, the most likely culprit is the CPAN perl
> module, but I'd like to confirm that.

These are part of LWP (libwww) and were installed with the LWP module.

> The reason I'm concerned about it is that the name HEAD clashes with
> /bin/head.exe, and results in weird-looking problems that took me a while
> to track down (i.e. 'ls|head' says 'head: command not found' -- I have
> check_case:strict; I suspect that without it users will simply get the
> wrong output).  This is most likely Cygwin-specific, as other OSs will
> easily distinguish between head and HEAD.

Only possibility to have HEAD and head.exe is to use CYGWIN=check_case:strict
or remove one of them.

> A suggestion/request to the perl maintainer: change the names of HEAD,
> GET, and POST to LWP-HEAD, LWP-GET, and LWP-POST...  For consistency, this
> should probably be done in the main perl development branch, anyway,
> rather than in the Cygwin port...  Does this sound very unreasonable?

The LWP module isn't part of the Cygwin perl distribution.  If you
install LWP you are asked if you want to install these shortcuts
This was included in the LWP setup because of the problems with Cygwin
and other case insensitive platforms.

You may try to convince the LWP maintainer to include an additional
option to get the same shortcuts with a userdefined name instead of
'get them or leave them' as it is now. (mailto: libwww at perl.org)


Gerrit
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019