This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: New Win98 problem, similar to _unlink problem


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]