Closed masa0x80 closed 7 years ago
The wrapped cd always returns 0 if you failed in changing the directory.
cd
0
$ cd $NON_EXISTENT_DIRECOTRY $ echo $status # => 0
It is because set command is executed after changing the direcotory.
set
Nice raised. Look good to me.
Problem
The wrapped
cd
always returns0
if you failed in changing the directory.It is because
set
command is executed after changing the direcotory.