mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-06-09 06:28:06 +02:00
52596: metafy interpreter name for error message
This commit is contained in:
parent
4c0ebc155e
commit
69c0c646bb
2 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
||||||
2024-02-24 Bart Schaefer <schaefer@zsh.org>
|
2024-02-24 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 52596: Src/exec.c: metafy interpreter name for error message
|
||||||
|
|
||||||
* Stephane: 52591: Src/builtin.c: printf builtin must pass
|
* Stephane: 52591: Src/builtin.c: printf builtin must pass
|
||||||
metafied strings to math evaluation
|
metafied strings to math evaluation
|
||||||
|
|
||||||
|
|
|
@ -551,7 +551,7 @@ zexecve(char *pth, char **argv, char **newenvp)
|
||||||
break;
|
break;
|
||||||
if (t0 == ct)
|
if (t0 == ct)
|
||||||
zerr("%s: bad interpreter: %s: %e", pth,
|
zerr("%s: bad interpreter: %s: %e", pth,
|
||||||
execvebuf + 2, eno);
|
metafy(execvebuf + 2, -1, META_NOALLOC), eno);
|
||||||
else {
|
else {
|
||||||
while (inblank(execvebuf[t0]))
|
while (inblank(execvebuf[t0]))
|
||||||
execvebuf[t0--] = '\0';
|
execvebuf[t0--] = '\0';
|
||||||
|
@ -574,8 +574,8 @@ zexecve(char *pth, char **argv, char **newenvp)
|
||||||
execve(pprog, argv - 2, newenvp);
|
execve(pprog, argv - 2, newenvp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
zerr("%s: bad interpreter: %s: %e", pth, ptr2,
|
zerr("%s: bad interpreter: %s: %e", pth,
|
||||||
eno);
|
metafy(ptr2, -1, META_NOALLOC), eno);
|
||||||
} else if (*ptr) {
|
} else if (*ptr) {
|
||||||
*ptr = '\0';
|
*ptr = '\0';
|
||||||
argv[-2] = ptr2;
|
argv[-2] = ptr2;
|
||||||
|
|
Loading…
Reference in a new issue