Enabling shell error handling in configure.ac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all:

I normally enable the following options in my shell scripts:

set -o errexit  # Alias set -e
set -o nounset  # Alias set -u
set -o pipefail # Now part of the POSIX/IEEE Std 1003.1-2024 specification too

I tried enabling them in my configure.ac, and I got weird errors. I gather that most of Autoconf is not ready for them, is it? Only pipefail did not cause any obvious trouble.

Or is there any way to enable such automatic error handling?

The shell has a lot of shortcomings, and those options are not watertight. However, without them, the shell scripts tend to be even more brittle than "normal".

Regards,
  rdiez





[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux