On Wed, Nov 20, 2024, at 11:39 AM, Paul Eggert wrote: > On 2024-11-20 06:52, R. Diez wrote: >> Or is there any way to enable such automatic error handling? > > That would require auditing all of Autoconf, and all the macros in > Gnulib and/or whereever else you get your macros from, so that the shell > scripts generated are safe to use with those options enabled. This would > be a useful project for someone to do, although it would take some time
Just to underline both the utility of this and the amount of work involved: about a year ago I did some experiments with use of set -e (not any of the other options) and shellcheck on Autoconf's own test suite. I found some bugs, but also an immense number of false positives (i.e. the code is fine as long as -e mode is not in use) with a genuine bug to total changes required ratio of about 1 in 20. Like Paul I do not have time to pursue this any further myself, but I'd be happy to guide anyone (you?) who wanted to work on it. If you're interested in doing more complex projects in the future, it would be a good way to get accustomed to how Autoconf's innards are put together. zw