According to Bash reference on Bash builtins:
cd [-L|[-P [-e]]] [directory]The -P option means to not follow symbolic links; symbolic links are followed by default or with the -L option. If the -e option is supplied with -P and the current working directory cannot be successfully determined after a successful directory change, cd will return an unsuccessful status.
Can somebody give me an example of situation when -e is useful?
Right now, if I supply -P option with -e (cd -P -e), I'm getting a usage message along with an error telling me that -e is "invalid option". Why is that?
-eoption was introduced in bash 4.2. What version are you running? – jordanm Feb 24 at 1:39