From owner-cvs-src-old@FreeBSD.ORG Sun Nov 22 14:08:03 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 1F408106566C for ; Sun, 22 Nov 2009 14:08:03 +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 0C16D8FC12 for ; Sun, 22 Nov 2009 14:08:03 +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 nAME823h002683 for ; Sun, 22 Nov 2009 14:08:02 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nAME82lH002682 for cvs-src-old@freebsd.org; Sun, 22 Nov 2009 14:08:02 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <200911221408.nAME82lH002682@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sun, 22 Nov 2009 14:04:20 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh eval.c input.c input.h src/tools/regression/bin/sh/builtins fc1.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: Sun, 22 Nov 2009 14:08:03 -0000 jilles 2009-11-22 14:04:20 UTC FreeBSD src repository Modified files: bin/sh eval.c input.c input.h Added files: tools/regression/bin/sh/builtins fc1.0 Log: SVN rev 199647 on 2009-11-22 14:04:20Z by jilles sh: Ensure the same command input file is on top after executing a builtin. This avoids weirdness when 'fc -e vi' or the like is done and there is a syntax error in the file. Formerly an interactive shell tried to execute stuff after the syntax error and exited. This should also avoid similar issues with 'command eval' and 'command .' when 'command' is implemented properly as in NetBSD sh. Special builtins did not have this problem since errors in them cause the shell to exit or to reset various state such as the current command input file. Revision Changes Path 1.68 +3 -0 src/bin/sh/eval.c 1.27 +26 -0 src/bin/sh/input.c 1.11 +4 -0 src/bin/sh/input.h 1.1 +27 -0 src/tools/regression/bin/sh/builtins/fc1.0 (new)