This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: [ANNOUNCEMENT] [1.7] Updated: dash-0.5.5.1-2; Obsolete: ash


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

Attachment: signature.asc
Description: OpenPGP digital signature


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