Thanks for reminding me of reading busybox's source code. You can learn a lot from learning how bash utils implemented, but it's really a headache to understand which tools from which package/git repo, busybox is a good enough and battle-tested collection for all of this.