Always use "." for cd

Nobody doesn't want to use $PWD to cd, so if $CDPATH does not include
it that was a mistake.

Bash also appends "." here.

Fixes #4484.
This commit is contained in:
Fabian Homborg
2019-03-26 10:11:36 +01:00
parent eeec6cc2fc
commit b86200938f
6 changed files with 23 additions and 4 deletions

View File

@@ -23,3 +23,9 @@ cd:
PWD is /tmp/cdcomp_test/linkhome
BogusPWD test 1 succeeded
BogusPWD test 2 succeeded
####################
# CDPATH
Gone to linkhome via CDPATH
Gone to base
Gone to linkhome via implicit . in CDPATH