Update function wrapper for cd builtin, make sure a local variable is used

darcs-hash:20060617131145-ac50b-1cef97b5e774713f659962b7e33f889be3081a3d.gz
This commit is contained in:
axel 2006-06-17 23:11:45 +10:00
parent e94803152c
commit c9e98c2eef

View file

@ -11,7 +11,7 @@ function cd -d (N_ "Change directory")
end end
# Avoid set completions # Avoid set completions
set previous $PWD set -l previous $PWD
if test $argv[1] = - ^/dev/null if test $argv[1] = - ^/dev/null
if test $__fish_cd_direction = next ^/dev/null if test $__fish_cd_direction = next ^/dev/null