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] |
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:
$ ./chdir c:/WINDOWS chdir to c:/WINDOWS: 0(No error), now in /c/WINDOWS
-- 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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |