misc/122680: Bash unexpected directory prompting

Bob Friesenhahn bfriesen at simple.dallas.tx.us
Sat Apr 12 03:10:02 UTC 2008


>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 at 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 at shaggy ~/src]$ cd graphics
/home/bfriesen/src/graphics
[bfriesen at shaggy ~/src/graphics]$ cd ..
[bfriesen at 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 at shaggy ~/src]$ echo $PS1
[\u@\h \w]\$
[bfriesen at shaggy ~/src]$ echo $PS2
>
[bfriesen at shaggy ~/src]$ echo $PS4
+
[bfriesen at shaggy ~/src]$
+
[bfriesen at 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:


More information about the freebsd-bugs mailing list