delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/02/01:36:20

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
Message-Id: <5.1.1.5.2.20030202012130.00a73720@mail.earthlink.net>
X-Sender: jeremyhetzler AT mail DOT earthlink DOT net
Date: Sun, 02 Feb 2003 01:39:48 -0800
To: cygwin AT cygwin DOT com
From: Jeremy Hetzler <jeremyhetzler AT mail DOT earthlink DOT net>
Subject: Re: Problem with makewhatis
In-Reply-To: <3E3B841F.97F5B536@infonie.fr>
Mime-Version: 1.0

At 09:23 AM 2/1/2003 +0100, Bernadette et Luc Henninger wrote:
>Hello,
>
>I have problem with "makewhatis" that may be related to "sh":
>
>$ /usr/sbin/makewhatis -v -u
>/usr/sbin/makewhatis: cannot create /dev/stderr: directory nonexistent
>
>$ bash /usr/sbin/makewhatis -v -u
>about to enter /usr/man
>
>$ cygcheck -c man bash ash
>Cygwin Package Information
>Package             Version
>ash                 20020731-1
>bash                2.05b-8
>man                 1.5j-1

You can work around this either by changing the shebang line to 
"#!/usr/bin/bash", or changing line 141 from:

         echo "about to enter $mandir" > /dev/stderr

to:

         echo "about to enter $mandir" >&2

which does the same thing AFAICT but is ash-friendly. A correct and 
complete fix would also change the references to /dev/stderr inside the 
gawk invocation.

While you're in there, you might consider changing "rm -rf" to "rm -r" to 
avoid the much-discussed rm hang issue (lines 62 and 363).

Jeremy


--
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