diff options
| author | Bart Schaefer <schaefer@zsh.org> | 2024-02-24 20:45:29 -0800 |
|---|---|---|
| committer | Bart Schaefer <schaefer@zsh.org> | 2024-02-24 20:45:29 -0800 |
| commit | 69c0c646bbabb1caaeb62242e9323a62bf3cd57a (patch) | |
| tree | abd48f1cb54534f6c89275d990e5ef21dcff2acc /Src/exec.c | |
| parent | 52591: printf builtin must pass metafied strings to math evaluation (diff) | |
| download | zsh-69c0c646bbabb1caaeb62242e9323a62bf3cd57a.tar zsh-69c0c646bbabb1caaeb62242e9323a62bf3cd57a.tar.gz zsh-69c0c646bbabb1caaeb62242e9323a62bf3cd57a.tar.bz2 zsh-69c0c646bbabb1caaeb62242e9323a62bf3cd57a.tar.lz zsh-69c0c646bbabb1caaeb62242e9323a62bf3cd57a.tar.xz zsh-69c0c646bbabb1caaeb62242e9323a62bf3cd57a.tar.zst zsh-69c0c646bbabb1caaeb62242e9323a62bf3cd57a.zip | |
52596: metafy interpreter name for error message
Diffstat (limited to 'Src/exec.c')
| -rw-r--r-- | Src/exec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/exec.c b/Src/exec.c index 1565cb13e..c75aa78d6 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -551,7 +551,7 @@ zexecve(char *pth, char **argv, char **newenvp) break; if (t0 == ct) zerr("%s: bad interpreter: %s: %e", pth, - execvebuf + 2, eno); + metafy(execvebuf + 2, -1, META_NOALLOC), eno); else { while (inblank(execvebuf[t0])) execvebuf[t0--] = '\0'; @@ -574,8 +574,8 @@ zexecve(char *pth, char **argv, char **newenvp) execve(pprog, argv - 2, newenvp); } } - zerr("%s: bad interpreter: %s: %e", pth, ptr2, - eno); + zerr("%s: bad interpreter: %s: %e", pth, + metafy(ptr2, -1, META_NOALLOC), eno); } else if (*ptr) { *ptr = '\0'; argv[-2] = ptr2; |
