diff options
author | Charles Blake <charlechaud@gmail.com> | 2019-03-16 16:01:57 -0400 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2019-03-19 14:09:50 +0000 |
commit | 084bf17c4bc28a2a651c69fdc9a5bdd6473c3b04 (patch) | |
tree | ea2a86ac93a5c3b1aa670d10bf89124a052b45dd /Src | |
parent | 73b29f079b50412700727e0f77991506c03d19fe (diff) | |
download | zsh-084bf17c4bc28a2a651c69fdc9a5bdd6473c3b04.tar.gz zsh-084bf17c4bc28a2a651c69fdc9a5bdd6473c3b04.tar.xz zsh-084bf17c4bc28a2a651c69fdc9a5bdd6473c3b04.zip |
44132: don't hash commands beginning with /
Diffstat (limited to 'Src')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c index 042ba065a..79ef83c1e 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -940,6 +940,8 @@ hashcmd(char *arg0, char **pp) char *s, buf[PATH_MAX+1]; char **pq; + if (*arg0 == '/') + return NULL; for (; *pp; pp++) if (**pp == '/') { s = buf; |