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?