Remove pushqueue for bash 3 compatibility.
This commit is contained in:
parent
2af2351ebf
commit
10f100186c
@ -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 ______________________________________________________________|
|
# |__ popqueue ______________________________________________________________|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user