diff options
author | Andrey Borzenkov <bor@users.sourceforge.net> | 2001-07-05 11:43:10 +0000 |
---|---|---|
committer | Andrey Borzenkov <bor@users.sourceforge.net> | 2001-07-05 11:43:10 +0000 |
commit | 7c0a534298980e8febd7a60c1e344fb3e760a581 (patch) | |
tree | 35ac3a12553bf69d2a9546e14331ff1502b0c070 /Src | |
parent | b65dcc197bf5e44071f9391a2b45224d2935d571 (diff) | |
download | zsh-7c0a534298980e8febd7a60c1e344fb3e760a581.tar.gz zsh-7c0a534298980e8febd7a60c1e344fb3e760a581.tar.xz zsh-7c0a534298980e8febd7a60c1e344fb3e760a581.zip |
15253 : hash foo together with foo.exe on Cygwin
Diffstat (limited to 'Src')
-rw-r--r-- | Src/hashtable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/hashtable.c b/Src/hashtable.c index c75a406e6..332f9479a 100644 --- a/Src/hashtable.c +++ b/Src/hashtable.c @@ -630,9 +630,9 @@ hashdir(char **dirp) Cmdnam cn; DIR *dir; char *fn; -#ifdef _WIN32 +#if defined(_WIN32) || defined(__CYGWIN__) char *exe; -#endif +#endif /* _WIN32 || _CYGWIN__ */ if (isrelative(*dirp) || !(dir = opendir(unmeta(*dirp)))) return; @@ -644,7 +644,7 @@ hashdir(char **dirp) cn->u.name = dirp; cmdnamtab->addnode(cmdnamtab, ztrdup(fn), cn); } -#ifdef _WIN32 +#if defined(_WIN32) || defined(__CYGWIN__) /* Hash foo.exe as foo, since when no real foo exists, foo.exe will get executed by DOS automatically. This quiets spurious corrections when CORRECT or CORRECT_ALL is set. */ @@ -660,7 +660,7 @@ hashdir(char **dirp) cmdnamtab->addnode(cmdnamtab, ztrdup(fn), cn); } } -#endif /* _WIN32 */ +#endif /* _WIN32 || __CYGWIN__ */ } closedir(dir); } |