2006-02-12 21:14:21 +08:00
|
|
|
|
2006-02-16 01:59:25 +08:00
|
|
|
function popd -d (_ "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
|
|
|
|
|