2006-02-12 21:14:21 +08:00
|
|
|
|
2006-03-02 00:53:47 +08:00
|
|
|
function popd -d (N_ "Pop dir from stack")
|
2006-02-12 21:14:21 +08:00
|
|
|
if test $dirstack[1]
|
|
|
|
cd $dirstack[1]
|
|
|
|
else
|
|
|
|
printf (_ "%s: Directory stack is empty...") popd
|
|
|
|
return 1
|
|
|
|
end
|
|
|
|
|
|
|
|
set -e dirstack[1]
|
|
|
|
|
|
|
|
end
|
|
|
|
|