From owner-cvs-src-old@FreeBSD.ORG Sat Apr 17 14:38:58 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 0EFDD106564A for ; Sat, 17 Apr 2010 14:38:58 +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 EFDEF8FC16 for ; Sat, 17 Apr 2010 14:38:57 +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 o3HEcvXK036238 for ; Sat, 17 Apr 2010 14:38:57 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o3HEcvwn036237 for cvs-src-old@freebsd.org; Sat, 17 Apr 2010 14:38:57 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201004171438.o3HEcvwn036237@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sat, 17 Apr 2010 14:35:46 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh cd.c cd.h main.c src/tools/regression/bin/sh/parameters pwd2.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, 17 Apr 2010 14:38:58 -0000 jilles 2010-04-17 14:35:46 UTC FreeBSD src repository Modified files: bin/sh cd.c cd.h main.c Added files: tools/regression/bin/sh/parameters pwd2.0 Log: SVN rev 206759 on 2010-04-17 14:35:46Z by jilles sh: On startup of the shell, use PWD from the environment if it is valid. Unset PWD if it is incorrect and no value for it can be determined. This preserves the logical current directory across shell invocations. Example (assuming /home is a symlink): $ cd $ pwd /home/foo $ sh $ pwd /home/foo Formerly the second pwd would show the physical path (symlinks resolved). Revision Changes Path 1.40 +22 -5 src/bin/sh/cd.c 1.8 +1 -1 src/bin/sh/cd.h 1.38 +1 -4 src/bin/sh/main.c 1.1 +24 -0 src/tools/regression/bin/sh/parameters/pwd2.0 (new)