1 2 3 4 5 6 7
#!/bin/zsh echo "Printing directory stack: " for ((i=1; i<$DIRSTACKSIZE; i++)) do echo "$i $dirstack[$i]" done