2
0

Remove pushqueue for bash 3 compatibility.

This commit is contained in:
Maarten Billemont 2014-10-20 08:51:58 -04:00
parent 2af2351ebf
commit 10f100186c

View File

@ -465,27 +465,6 @@ readwhile() {
# ___________________________________________________________________________
# |__ pushqueue ______________________________________________________________|
#
# pushqueue element ...
#
# Pushes the given arguments as elements onto the queue.
#
pushqueue() {
[[ $_queue ]] || {
coproc _queue {
while IFS= read -r -d ''; do
printf '%s\0' "$REPLY"
done
}
}
printf '%s\0' "$@" >&"${_queue[1]}"
} # _____________________________________________________________________
# __________________________________________________________________________
# |__ popqueue ______________________________________________________________|
#