ormaaj 1683646287 learn k# builtin head; function faq1 { typeset -n ref=$1; while head -n 1 | [[ ${ { tee /proc/self/fd/3 | ref+=("$(<&0)"); } 3>&1; } ]]; do :; done; unset -v "ref[-1]"; }; typeset -a a; printf %s!\\n ayy bee see | faq1 a; typeset -p a ormaaj 1683647206 forget ormaaj 1683647249 learn k# builtin head; function faq1 { typeset -n ref=$1; while head -n 1 | [[ ${ { ref+=("$(tee /proc/self/fd/3)"); } 3>&1; } ]]; do :; done; unset -v "ref[-1]"; }; typeset -a a; printf %s!\\n ayy bee see | faq1 a; typeset -p a