On Wed, Apr 8, 2020 at 8:44 AM Joerg Schilling <joerg.schill...@fokus.fraunhofer.de> wrote: > > Michael Orlitzky <m...@gentoo.org> wrote: > > > Thanks, this will be a PITA for a while (again). Another developer had > > patched /bin/dash so that it was effectively broken, to the point where > > ./configure scripts would decide on their own use bash instead (even if > > you set /bin/sh to point to dash). This "fixed" the errors, but meant > > Are there no unit tests for dash?
There do not appear to be any tests in the dash source repo. https://git.kernel.org/pub/scm/utils/dash/dash.git/ Wikipedia says that dash is a fork of NetBSD's ash, and I do see tests in their CVS repo. That might be worth looking into. http://cvsweb.netbsd.org/bsdweb.cgi/src/tests/bin/sh/ > When ever I change something in bosh, I run the unit tests to verify that I > did > not introduce a bug. One of the unit tests is to run a configure and compare > the results with the results frm a reference shell. > > BTW: Did you ever think about replacing dash by bosh? We use bash as the default /bin/sh, but users are free to replace it with whatever shell they like, so long as it is reasonably POSIX-compliant. Other shells are obviously less tested in Gentoo.