From owner-cvs-bin Sat Dec 21 14:09:44 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA04020 for cvs-bin-outgoing; Sat, 21 Dec 1996 14:09:44 -0800 (PST) Received: (from steve@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA04013; Sat, 21 Dec 1996 14:09:42 -0800 (PST) Date: Sat, 21 Dec 1996 14:09:42 -0800 (PST) From: Steve Price Message-Id: <199612212209.OAA04013@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-bin Subject: cvs commit: src/bin/sh cd.c cd.h main.c shell.h Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk steve 96/12/21 14:09:41 Modified: bin/sh cd.c cd.h main.c shell.h Log: Make sh(1) a little braver in the face of adversity. sh(1) now handles the getpwd() init problem the same way as bash and ksh do. Also while I was in here, I cleaned up the format a little, removed some unnnecessary #if SYMLINKS cruft, and changed the pwd builtin to use getcwd(3) as Joerg suggested. Revision Changes Path 1.8 +16 -163 src/bin/sh/cd.c 1.2 +1 -1 src/bin/sh/cd.h 1.11 +3 -2 src/bin/sh/main.c 1.8 +1 -3 src/bin/sh/shell.h