cd -e returns syntax error

2013-02-23 Thread Chris Down
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



Re: cd -e returns syntax error

2013-02-23 Thread Dan Douglas
On Sunday, February 24, 2013 02:43:03 PM Chris Down wrote:
> Hi all,
> 
> Unless I'm misunderstanding how it should work, `cd -P -e' does not work as
> specified by the documentation. From `help cd':

Yep, see: http://lists.gnu.org/archive/html/bug-bash/2013-01/msg00099.html
-- 
Dan Douglas



Re: cd -e returns syntax error

2013-02-23 Thread Chris Down
Never mind, I found another thread about the same issue.

Best,

Chris