diff options
author | 2015-10-03 15:44:57 -0700 | |
---|---|---|
committer | 2015-10-03 15:44:57 -0700 | |
commit | aeaacedf75a99b06a93d8fe873ed7a795ed4f3dd (patch) | |
tree | eab60340f13ace98b5dfe9745b87d56edb2fba60 /src/expand.h | |
parent | bec6d5c174f103085a5c5b53fcbe3db5a9de1193 (diff) |
Don't do intermediate fuzzy directory matching with $PATH
When expanding an executable with $PATH, don't attempt to
interpret the directories in PATH as fuzzy matching. Fixes #2413.
Diffstat (limited to 'src/expand.h')
-rw-r--r-- | src/expand.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/expand.h b/src/expand.h index a6b287f4..b07186e4 100644 --- a/src/expand.h +++ b/src/expand.h @@ -56,7 +56,10 @@ enum EXPAND_SKIP_HOME_DIRECTORIES = 1 << 8, /** Allow fuzzy matching */ - EXPAND_FUZZY_MATCH = 1 << 9 + EXPAND_FUZZY_MATCH = 1 << 9, + + /** Disallow directory abbreviations like /u/l/b for /usr/local/bin. Only applicable if EXPAND_FUZZY_MATCH is set. */ + EXPAND_NO_FUZZY_DIRECTORIES = 1 << 10 }; typedef int expand_flags_t; |