From owner-freebsd-bugs@FreeBSD.ORG Wed Jun 20 05:50:08 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A7B01065673 for ; Wed, 20 Jun 2012 05:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5CA3A8FC15 for ; Wed, 20 Jun 2012 05:50:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q5K5o8F1098828 for ; Wed, 20 Jun 2012 05:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q5K5o88e098827; Wed, 20 Jun 2012 05:50:08 GMT (envelope-from gnats) Resent-Date: Wed, 20 Jun 2012 05:50:08 GMT Resent-Message-Id: <201206200550.q5K5o88e098827@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ronald F.Guilmette" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63468106564A for ; Wed, 20 Jun 2012 05:42:30 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 410C48FC12 for ; Wed, 20 Jun 2012 05:42:29 +0000 (UTC) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id 7905B5081B; Tue, 19 Jun 2012 22:32:32 -0700 (PDT) Message-Id: <20120620053232.7905B5081B@segfault.tristatelogic.com> Date: Tue, 19 Jun 2012 22:32:32 -0700 (PDT) From: "Ronald F.Guilmette" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/169256: /bin/sh provides crummy diagnositic when cd fails X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Ronald F.Guilmette" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2012 05:50:08 -0000 >Number: 169256 >Category: bin >Synopsis: /bin/sh provides crummy diagnositic when cd fails >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 20 05:50:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Ronald F. Guilmette >Release: FreeBSD 8.3-RELEASE amd64 >Organization: entropy >Environment: 8.3-RELEASE amd64 >Description: If you are running /bin/sh and you try to `cd' into a non-existant directory (or one that you are not allowed to cd into, due to permissions) then /bin/sh gives you the following unhelpful diagnostic: cd: can't cd to craponarope (Here, the the directory name "craponarope" is just used as an example.) I checked and both csh and bash give much more helpful diagnostics when attempting to perform the same operation, i.e. : No such file or directory In my opinion, /bin/sh should provide that more helpful diagnostic. >How-To-Repeat: /bin/sh cd some-nonexistant-directory >Fix: I have not looked at the source, but I imagine that the fix should be fairly trivial. >Release-Note: >Audit-Trail: >Unformatted: