Open Julien-Elie opened 3 years ago
fixconfig could take care of the change if Autoconf has the path to a better shell. I see that we have the SHELL
variable in Makefile.global, unfortunately set by Autoconf to /bin/sh on BSD systems (/bin/bash is set to SHELL by Autoconf on Debian).
I bet we should not temper with that SHELL variable and use something like BASH_PATH instead...
Yet, as tests/nnrpd/auth-test is the only shell script affected by such an issue, it would probably be cleaner to rewrite it in C, or even Perl. The script is pretty small and seems easily convertible.
The problem with nnrpd/auth-ext is that /bin/sh on OpenBSD, when it kills itself with SIGUP, doesn't exit like a process killed with SIGHUP and instead exits with some sort of weird exit status. To fix this will probably require rewriting tests/nnrpd/auth-test in C or finding bash in Autoconf and switching the shell to bash. (Russ' analysis.)