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