delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/25/09:32:38

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20111125142152.GK23778@calimero.vinschen.de>
References: <CAEYw_q=jHbGUB66fwxtnVJ1A9THAoi+FehOLXNYD3_UxRydjLw AT mail DOT gmail DOT com> <20111125142152 DOT GK23778 AT calimero DOT vinschen DOT de>
Date: Fri, 25 Nov 2011 15:32:13 +0100
Message-ID: <CAEhDDbDSU9qD7vkc5+_ntJ+Y8x+GY7TO+kytW4Xc7e7E_uPhtA@mail.gmail.com>
Subject: Re: tail/head not working with a pseudoterminal
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pAPEWWLK010943

On Fri, Nov 25, 2011 at 3:21 PM, Corinna Vinschen  wrote:
> On Nov 25 16:03, Costin Caraivan wrote:
...
>> Also head fails with:
>> Pseudo-terminal will not be allocated because stdin is not a terminal.
>> bash: /cygdrive/c/apps/activeperl/bin/head: /usr/bin/perl: bad
>> interpreter: Permission denied
>
> You're running the wrong head command.  This is some activestate perl
> script, not the Cygwin head tool from coreutils.  Change your $PATH
> to find the Cygwin apps first.

It's HEAD from lwp-request:
http://search.cpan.org/~gaas/libwww-perl-6.03/bin/lwp-request

Found unfortunately due to case-insensitive NTFS.

Costin, try /usr/bin/head explicitly.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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