delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/03/18/23:35:00

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Sat, 18 Mar 2000 23:34:50 -0500
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: New Win98 problem, similar to _unlink problem
Message-ID: <20000318233450.A2450@cygnus.com>
Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com
Mail-Followup-To: cgf AT cygnus DOT com, cygwin-developers AT sourceware DOT cygnus DOT com
References: <38D44FD0 DOT DAD88CDF AT attglobal DOT net> <20000318231659 DOT A2393 AT cygnus DOT com> <38D4564D DOT 9A946970 AT attglobal DOT net>
Mime-Version: 1.0
User-Agent: Mutt/1.1.8i
In-Reply-To: <38D4564D.9A946970@attglobal.net>; from fortinj@attglobal.net on Sat, Mar 18, 2000 at 11:23:41PM -0500

On Sat, Mar 18, 2000 at 11:23:41PM -0500, John Fortin wrote:
>Chris Faylor wrote:
>> On Sat, Mar 18, 2000 at 10:56:00PM -0500, John Fortin wrote:
>>>#! /bin/sh
>>>if test $# -eq 0; then
>>>  tmpout=autoh$$
>>>  trap "rm -f $tmpout; exit 1" 1 2 15
>>>  exec > $tmpout
>>>fi
>>>cat <<EOF
>>>/* config.h.in.  Generated automatically from xxxxxxxx by autoheader.  */
>>>EOF
>>>
>>>mv -f $tmpout config.h.in
>>
>> You're renaming an opened file.  AFAIK, that particular problem is
>> insurmountable in Windows.
>
>So autoheader is broken for cygwin??  I know I've used it before...

It's hard to imagine how this could ever work.  Unless I'm missing
something, it just isn't possible to do this in windows.

You can pare this down to this example, which works on UNIX but fails
on Windows:

#!/bin/sh
exec > foo
mv foo bar

cgf

- Raw text -


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