[ANNOUNCEMENT] [1.7] Updated: dash-0.5.5.1-2; Obsolete: ash
Eric Blake
eblake@redhat.com
Fri Mar 5 17:20:00 GMT 2010
According to Edward Lam on 3/5/2010 9:55 AM:
> Corinna Vinschen wrote:
>> Is that a case-sensitivity issue, perhaps? See
>> http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive
>>
>
> I don't see how it is:
>
> $ dash
> $ cd /c
> $ ls -d W*
> WINDOWS
> $ cd c:/WINDOWS
> cd: 3: can't cd to c:/WINDOWS
Let's rule out bash vs. dash complexities, and first focus on whether
cygwin1.dll might be at fault. Untested code:
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
int main(int argc, char**argv)
{
int e = chdir(argv[1]);
char *cwd = getcwd(NULL,0);
return printf ("chdir to %s: %d(%s), now in %s\n", argv[1],
e, strerror(e), cwd);
}
That alone will give insights into whether you should even be expecting
this to work. The difference between bash and dash is that bash spends
more time calling cygwin conversion routines in advance of attempting chdir.
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 320 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100305/e82446cc/attachment.sig>
More information about the Cygwin
mailing list