#!/bin/zsh for ((i=1; i<=$DIRSTACKSIZE; i++)) echo "$i $dirstack[$i]"