[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fw: [Gnu-arch-users] Arch On Cygwin(Win32)
From: |
Naushit Sakarvadia |
Subject: |
Re: Fw: [Gnu-arch-users] Arch On Cygwin(Win32) |
Date: |
Tue, 11 Nov 2003 20:24:40 -0600 |
Question for Cygwin experts.
Following code always return -1 why??
=========snip======================
#include <stdio.h>
main(void)
{
int ret;
printf("renaming file x to y \n");
ret =
rename("/cygdrive/c/tla-1.1pre8/src/build/tla/tests/workdir/test-1-wor
kdir/hello-world--mainline--1.0/{arch}/,,tagging-method",
"/cygdrive/c/tla-1.1
pre8/src/build/tla/tests/workdir/test-1-workdir/hello-world--mainline--1.0/{
arch}/=tagging-method");
printf("returned %d \n",ret);
}
========snip========================
While doing cut & paste please be careful about spaces in string.
On my system I made sure 3 times that path & files does exist and
they are not open by any other program
Thanks
--Naushit.
----- Original Message -----
From: "Jan Hudec" <address@hidden>
To: "Naushit Sakarvadia" <address@hidden>
Cc: <address@hidden>
Sent: Tuesday, November 11, 2003 6:40 PM
Subject: Re: Fw: [Gnu-arch-users] Arch On Cygwin(Win32)
> On Tue, Nov 11, 2003 at 15:26:58 -0600, Naushit Sakarvadia wrote:
> > BTW.......you can fix my previous problem by modifying
> > /hackerlab/tests/unit-unidata.sh
> >
> > change line 16 to
> > ./unit-unidata > ,tmp2_dos
> >
> > and then add line
> > sed -e "s/^M//" ,tmp2_dos > ,tmp2
>
> Which means that the problem:
> - Is (as was already suggested) inconsistent usage of binary and ascii
mode.
> - Is serious and should be fixed.
>
> --------------------------------------------------------------------------
-----
> Jan 'Bulb' Hudec <address@hidden>