Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

3.1.6-test-1: strange cd behaviour



(/tools/src  is in cdpath)

bor@itsrm2:/tools/src/zsh-3.1.6-test-1%> builtin cd zsh-3.1.6-test-1/..
bor@itsrm2:/tools/src/zsh-3.1.6-test-1%> echo $?
0
bor@itsrm2:/tools/src/zsh-3.1.6-test-1%> /bin/pwd
/tools/src/zsh-3.1.6-test-1

That is, cd does not change directory and returns success. I have some scripts
that do "cd /some/dir && rm -r ..." ahem ...

/andrej



Messages sorted by: Reverse Date, Date, Thread, Author