Date: Tue, 6 Oct 2009 22:00:14 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh eval.c exec.c src/tools/regression/bin/sh/execution unknown1.0 Message-ID: <200910062202.n96M2oLO048321@repoman.freebsd.org>
index | next in thread | raw e-mail
jilles 2009-10-06 22:00:14 UTC
FreeBSD src repository
Modified files:
bin/sh eval.c exec.c
Added files:
tools/regression/bin/sh/execution unknown1.0
Log:
SVN rev 197820 on 2009-10-06 22:00:14Z by jilles
sh: Send the "xyz: not found" message to redirected fd 2.
This also fixes that trying to execute a non-regular file with a command
name without '/' returns 127 instead of 126.
The fix is rather simplistic: treat CMDUNKNOWN as if the command were found
as an external program. The resulting fork is a bit wasteful but executing
unknown commands should not be very frequent.
PR: bin/137659
Revision Changes Path
1.67 +2 -7 src/bin/sh/eval.c
1.37 +1 -0 src/bin/sh/exec.c
1.1 +29 -0 src/tools/regression/bin/sh/execution/unknown1.0 (new)
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910062202.n96M2oLO048321>
