From owner-freebsd-bugs@FreeBSD.ORG Sat Apr 12 03:10:02 2008 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 69A56106579A for ; Sat, 12 Apr 2008 03:10:02 +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 F40E88FC1E for ; Sat, 12 Apr 2008 03:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3C3A1MW016922 for ; Sat, 12 Apr 2008 03:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3C3A1KG016921; Sat, 12 Apr 2008 03:10:01 GMT (envelope-from gnats) Resent-Date: Sat, 12 Apr 2008 03:10:01 GMT Resent-Message-Id: <200804120310.m3C3A1KG016921@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, Bob Friesenhahn Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85A531065674 for ; Sat, 12 Apr 2008 03:00:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 8796D8FC25 for ; Sat, 12 Apr 2008 03:00:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m3C30oec061300 for ; Sat, 12 Apr 2008 03:00:50 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m3C30oAF061299; Sat, 12 Apr 2008 03:00:50 GMT (envelope-from nobody) Message-Id: <200804120300.m3C30oAF061299@www.freebsd.org> Date: Sat, 12 Apr 2008 03:00:50 GMT From: Bob Friesenhahn To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/122680: Bash unexpected directory prompting X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2008 03:10:02 -0000 >Number: 122680 >Category: misc >Synopsis: Bash unexpected directory prompting >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 12 03:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Bob Friesenhahn >Release: 7.0 >Organization: >Environment: FreeBSD shaggy.simplesystems.org 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: FreeBSD 7.0 comes with a bash which identifies itself as GNU bash, version 3.2.33(0)-release (i386-portbld-freebsd7.0) I find that every time bash changes directories to a subdirectory it prints out the new directory path, but it does not print out the directory path after 'cd ..'. This includes when bash is used to execute scripts and it is not in an interactive mode. This is what I see [bfriesen@shaggy ~/src]$ cd graphics /home/bfriesen/src/graphics [bfriesen@shaggy ~/src/graphics]$ cd .. [bfriesen@shaggy ~/src]$ set -o allexport off braceexpand on emacs on errexit off errtrace off functrace off hashall on histexpand on history on ignoreeof off interactive-comments on keyword off monitor on noclobber off noexec off noglob off nolog off notify off nounset off onecmd off physical off pipefail off posix off privileged off verbose off vi off xtrace off [bfriesen@shaggy ~/src]$ echo $PS1 [\u@\h \w]\$ [bfriesen@shaggy ~/src]$ echo $PS2 > [bfriesen@shaggy ~/src]$ echo $PS4 + [bfriesen@shaggy ~/src]$ + [bfriesen@shaggy ~/src]$ The only documented bash rc file I have which contains anything executable is .bashrc and it contains this: echo "executing .bashrc" set -o emacs unset ls What is causing this spurious directory output from bash and how can I disable it? It makes command execution very slow whenever the command cds to a subdirectory. The unexpected output caused the rsync 3.0 test suite to fail and I believe that it may be slowing down autotools cripts. Thanks, Bob >How-To-Repeat: Without any user bash . files, start up bash and cd to a subdirectory. Observe that full directory path to subdirectory is printed. Then 'cd ..' and observe that nothing is printed. >Fix: >Release-Note: >Audit-Trail: >Unformatted: