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