On Sat, Oct 15, 2016 at 5:41 PM, lolilolicon <loliloli...@gmail.com> wrote: > > pop() { > local -n _a=$1 > printf -v "$2" "${_a[-1]}"
and of course I meant printf -v "$2" '%s' "${_a[-1]}" The keyword is nameref if you haven't heard of it, so you can look it up in the man page :)