> echoz.sh also uses cut, base64, stdbuf, tr, mkfifo, tee and sort.
tee can be eliminated if needed be, the others should probably be added to the list of dependencies, thanks.
> echoz.sh does not seem to have any "bashisms" so perhaps one does not actually need bash and other sh will suffice.
Indeed, there is a PR which I have to review which fixes that.
> The uses of cut to isolate substrings and tr to replace characters can also be acomplished using sed.
I would be interested how you would do especially the tr part in sed, given that sed, even unbufferedly, operates on "lines". I use tr to replace '>' (XML delimiter) with a line ending recognized by sed to be able to operate on individual XML elements.
The uses of cut could be replaced by sed in the script indeed, although it can’t be moved into the main sed script. I made an issue for that: https://github.com/horazont/xmpp-echo-bot/issues/6
<spoiler>
> "All you have is openssl, bash, dig, stdbuf and sed?"
I hope it is clear that this entire thing is ironic and the long list of dependencies -- especially given that bash could reasonably be used to replace sed here -- is supposed to underline that. I’ll gladly add more :).
</spoiler>