Rewrite bsort() from hand-rolled recursive to simpler iterative reusing code
authorkn <kn@openbsd.org>
Thu, 16 Feb 2023 18:10:28 +0000 (18:10 +0000)
committerkn <kn@openbsd.org>
Thu, 16 Feb 2023 18:10:28 +0000 (18:10 +0000)
commitc8bf1358a0955fbc9dc93a5b7bb9ec1f7e078495
tree561d694162abbfc4046b3cb77ff9d717511dc768
parentac4f428e8154e128d72063135a9f44284a94225b
Rewrite bsort() from hand-rolled recursive to simpler iterative reusing code

ksh(1) can sort itself and addel() ensures uniqueness, so reuse both to get
a much simpler shell version of `sort -u' that is bug-for-bug compatible
with the old one but shorter and easier to tweak/reason about.

OK afresh1
distrib/miniroot/install.sub