--- src/cd.c 2011-03-15 03:18:06.000000000 -0400 +++ src/cd.new.c 2013-03-28 11:03:32.649576500 -0400 @@ -38,6 +38,9 @@ #include #include #include +#ifdef __CYGWIN__ +#include +#endif /* * The cd and pwd commands. @@ -194,6 +197,11 @@ char *cdcomppath; const char *lim; +#ifdef __CYGWIN__ + char pathbuf[PATH_MAX + 1]; + cygwin_conv_to_full_posix_path (dir, pathbuf); + dir = pathbuf; +#endif cdcomppath = sstrdup(dir); STARTSTACKSTR(new); if (*dir != '/') {