From owner-cvs-src-old@FreeBSD.ORG Sat Mar 13 23:07:11 2010 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 36156106566C for ; Sat, 13 Mar 2010 23:07:11 +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 23BFB8FC1D for ; Sat, 13 Mar 2010 23:07:11 +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 o2DN7BJr026024 for ; Sat, 13 Mar 2010 23:07:11 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o2DN7B2k026023 for cvs-src-old@freebsd.org; Sat, 13 Mar 2010 23:07:11 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201003132307.o2DN7B2k026023@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sat, 13 Mar 2010 22:53:17 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh eval.c src/tools/regression/bin/sh/errors redirection-error4.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: Sat, 13 Mar 2010 23:07:11 -0000 jilles 2010-03-13 22:53:17 UTC FreeBSD src repository Modified files: bin/sh eval.c Added files: tools/regression/bin/sh/errors redirection-error4.0 Log: SVN rev 205138 on 2010-03-13 22:53:17Z by jilles sh: Do not abort on a redirection error if there is no command word. Although simple commands without a command word (only assignments and/or redirections) are much like special builtins, POSIX and most shells seem to agree that redirection errors should not abort the shell in this case. Of course, the assignments persist and assignment errors are fatal. To get the old behaviour portably, use the ':' special builtin. To get the new behaviour portably, given that there are no assignments, use the 'true' regular builtin. Revision Changes Path 1.79 +7 -1 src/bin/sh/eval.c 1.1 +7 -0 src/tools/regression/bin/sh/errors/redirection-error4.0 (new)