From 33799ae2b00c09445e2e47720bc740ec434416e4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 12 Jan 2017 13:54:29 +0000 Subject: 40335: More care with autoload function path. If doing "autoload -X", the path present might actually be location of file containing the function with the autoload -X. Add an explicit flag to say it's a directory for autoload. --- Src/zsh.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Src/zsh.h') diff --git a/Src/zsh.h b/Src/zsh.h index 67c5a3587..7d18333be 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1823,6 +1823,7 @@ struct tieddata { /* Remaining flags do not correspond directly to command line arguments */ #define PM_DONTIMPORT_SUID (1<<19) /* do not import if running setuid */ +#define PM_LOADDIR (1<<19) /* (function) filename gives load directory */ #define PM_SINGLE (1<<20) /* special can only have a single instance */ #define PM_LOCAL (1<<21) /* this parameter will be made local */ #define PM_SPECIAL (1<<22) /* special builtin parameter */ -- cgit 1.4.1