commit - c016e86ddbf2ffad50ccfdab9c0fa810917fbb2d
commit + 13b060f0bd029db1742acb1f3722c05cf079f2b1
blob - f2b65a168c2ad92a6763a28bfe15066b933f20f1
blob + 1ad626d1e540c3787254cd0354cbbc1b1c6f3fde
--- cmdargs.c
+++ cmdargs.c
execvpe(shellp, arg, env);
else
execv(shellp, arg);
- printf("%% exec failed: %s\n", strerror(errno));
+ printf("%% exec '%s' failed: %s\n", shellp,
+ strerror(errno));
_exit(127); /* same as what ksh(1) would do here */
}
break;
blob - 8ec34c064c7a41b81c920a0d7b65aeb954d098f6
blob + 17256bbabcae936e02f020bc676e43ad55dc1a51
--- commands.c
+++ commands.c
execle("/usr/bin/man", "man", "-l",
"-O", tagarg, nsh8, NULL, env);
}
- printf("%% execl failed: %s\n", strerror(errno));
+ printf("%% execl '/usr/bin/man' failed: %s\n",
+ strerror(errno));
_exit(0);
break;
default:
(char *)NULL);
else
execl(shellp, shellname, (char *)NULL);
- printf("%% execl failed: %s\n", strerror(errno));
+ printf("%% execl '%s' failed: %s\n", shellp,
+ strerror(errno));
_exit(0);
}
break;