From owner-cvs-src-old@FreeBSD.ORG Tue Oct 6 22:02:52 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5636B106566B for ; Tue, 6 Oct 2009 22:02:52 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4358C8FC0A for ; Tue, 6 Oct 2009 22:02:52 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n96M2o2x048322 for ; Tue, 6 Oct 2009 22:02:50 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n96M2oLO048321 for cvs-src-old@freebsd.org; Tue, 6 Oct 2009 22:02:50 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <200910062202.n96M2oLO048321@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Tue, 6 Oct 2009 22:00:14 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh eval.c exec.c src/tools/regression/bin/sh/execution unknown1.0 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2009 22:02:52 -0000 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)