Hi all,

Unless I'm misunderstanding how it should work, `cd -P -e' does not work as
specified by the documentation. From `help cd':

    -e  if the -P option is supplied, and the current working directory
        cannot be determined successfully, exit with a non-zero status

Attempting to use it, however, returns a syntax error:

    $ echo $BASH_VERSION
    4.2.42(2)-release
    $ mkdir foo
    $ cd -P -e foo
    bash: cd: -e: invalid option
    cd: usage: cd [-L|[-P [-e]]] [dir]

This happens no matter what comes after or before -e: `cd -e', `cd -P -e' and
`cd -P -e foo' all return the same thing.

I'm using the latest version of `bash' as packaged by Arch Linux. I did a
search for any previous threads on this issue but didn't find anything, and I
didn't see anything on the devel branch (although it's possible I missed it, I
guess). Any ideas?

Best,

Chris

Reply via email to