New Win98 problem, similar to _unlink problem

Chris Faylor
Sat Mar 18 20:34:00 GMT 2000

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
>>>cat <<EOF
>>>/*  Generated automatically from xxxxxxxx by autoheader.  */
>>>mv -f $tmpout
>> 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:

exec > foo
mv foo bar


More information about the Cygwin-developers mailing list