mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-06 09:41:07 +01:00
22473: tweak bad interpreter formatting
This commit is contained in:
parent
cd821f5f5f
commit
116ee236d1
2 changed files with 11 additions and 3 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-05-30 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 22473: Src/exec.c: modify zsh-users/10343 to print interpreter
|
||||
using nice characters. Still not very satisfactory.
|
||||
|
||||
2006-05-29 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 22470: configure.ac: incorporate extensions to errno.h
|
||||
|
|
|
|||
|
|
@ -409,9 +409,12 @@ zexecve(char *pth, char **argv)
|
|||
char *buf;
|
||||
if (*ptr)
|
||||
*ptr = '\0';
|
||||
buf = tricat("%s: bad interpreter: ", ptr2,
|
||||
": %e");
|
||||
zerr(buf, pth, eno);
|
||||
/*
|
||||
* TODO: needs variable argument handling
|
||||
* in zerrmsg() etc. to do this properly.
|
||||
*/
|
||||
buf = dyncat(pth, ": bad interpreter: %s: %e");
|
||||
zerr(buf, ptr2, eno);
|
||||
} else if (*ptr) {
|
||||
*ptr = '\0';
|
||||
argv[-2] = ptr2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue