From owner-cvs-src-old@FreeBSD.ORG Fri May 20 22:56:09 2011 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 89AFC106566C for ; Fri, 20 May 2011 22:56:09 +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 789798FC0C for ; Fri, 20 May 2011 22:56:09 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p4KMu98f069390 for ; Fri, 20 May 2011 22:56:09 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4KMu9ZI069389 for cvs-src-old@freebsd.org; Fri, 20 May 2011 22:56:09 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201105202256.p4KMu9ZI069389@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Fri, 20 May 2011 22:55:18 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh cd.c sh.1 src/tools/regression/bin/sh/builtins cd3.0 cd4.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: Fri, 20 May 2011 22:56:09 -0000 jilles 2011-05-20 22:55:18 UTC FreeBSD src repository Modified files: bin/sh cd.c sh.1 Added files: tools/regression/bin/sh/builtins cd3.0 cd4.0 Log: SVN rev 222154 on 2011-05-20 22:55:18Z by jilles sh: Implement the cd -e flag proposed for the next POSIX issue. This reflects failure to determine the pathname of the new directory in the exit status (1). Normally, cd returns successfully if it did chdir() and the call was successful. In POSIX, -e only has meaning with -P; because our -L is not entirely compliant and may fall back to -P mode, -e has some effect with -L as well. Revision Changes Path 1.46 +17 -8 src/bin/sh/cd.c 1.164 +11 -2 src/bin/sh/sh.1 1.1 +21 -0 src/tools/regression/bin/sh/builtins/cd3.0 (new) 1.1 +38 -0 src/tools/regression/bin/sh/builtins/cd4.0 (new)