Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2024 13:47:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 277760] sh: cd prints path when prefixed with ./
Message-ID:  <bug-277760-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277760

            Bug ID: 277760
           Summary: sh: cd prints path when prefixed with ./
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: naddy@FreeBSD.org

When changing into a directory that is prefixed with "./", interactive sh(1)
prints the path:

$ cd /
$ (cd /usr)
$ (cd usr)
$ (cd ./usr)
/usr
$=20

This appears to be a bug in all versions of FreeBSD.

Printing the path is normal and standards-compliant for "cd -" or when CDPA=
TH
is used.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277760-227>