summaryrefslogtreecommitdiff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorCharles Blake <charlechaud@gmail.com>2019-03-16 16:01:57 -0400
committerPeter Stephenson <p.stephenson@samsung.com>2019-03-19 14:09:50 +0000
commit084bf17c4bc28a2a651c69fdc9a5bdd6473c3b04 (patch)
treeea2a86ac93a5c3b1aa670d10bf89124a052b45dd /Src/exec.c
parent73b29f079b50412700727e0f77991506c03d19fe (diff)
downloadzsh-084bf17c4bc28a2a651c69fdc9a5bdd6473c3b04.tar.gz
zsh-084bf17c4bc28a2a651c69fdc9a5bdd6473c3b04.zip
44132: don't hash commands beginning with /
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c2
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;