diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/utils.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 59f4f0c82..c24a61686 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-08-29 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> + + * 44714 (tweaked): Src/utils.c: Take account of CDABLE_VARS + while checking spelling + 2019-08-28 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> * 44710: Src/Builtins/rlimits.awk, Src/Builtins/rlimits.c, diff --git a/Src/utils.c b/Src/utils.c index 46cf7bcf6..1d916e71f 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3159,6 +3159,8 @@ spckword(char **s, int hist, int cmd, int ask) scanhashtable(cmdnamtab, 1, 0, 0, spscan, 0); if (autocd) { char **pp; + if (cd_able_vars(unmeta(guess))) + return; for (pp = cdpath; *pp; pp++) { char bestcd[PATH_MAX + 1]; int thisdist; |