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

Re: a bug of zsh



On Wed, 28 Sep 2016 12:10:10 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> What if "cd" simply behaves as if chase_dots is set any time the value of
> $PWD is "." ?

Ah, you mean (with the default options)

% ./foo
% pwd
/export/home/pws/tmp/foo
% rmdir ../foo
% pwd
/export/home/pws/tmp/foo      # cd .. still works here
% cd .
% pwd
.                             # but now "cd .." would require chase_dots
%

That seems a reasonable minimal fix.  I haven't looked at the code.

pws



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