Corinna Vinschen wrote:
On Mar  5 10:10, Eric Blake wrote:
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);
}

Works fine in Cygwin, I just tested it:

This also works fine on my system:

$ ./chdir c:/WINDOWS
chdir to c:/WINDOWS: 0(No error), now in /c/WINDOWS


-Edward

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to