I noticed this several times today. If I type cd ../Directory
to change to another directory, it prints "bash: cd: write error: Success". I can't determine what other previous commands might be related to this.
typeset -f
prints nothing.alias
prints nothing.type -a cd
prints "cd is a shell builtin".echo $CDPATH
prints an empty line.$BASH_VERSION
prints "bash: 4.2.37(1)-release: command not found".- I only noticed this 2-3 times. The initial directory and target directory were identical in both situations. I changed directories in this manner many other times, but did not encounter the error always.
What could be causing this?
type -a cd
as Glenn requested.type
command to your question. Also, does this happen in all directories or only if you are in a specific one(s)? And what is the output ofecho $CDPATH
?$BASH_VERSION
) are you running?bash 4.2.37(1)
.