Date: Fri, 14 Jun 2024 07:28:41 +0000
From: Alain BROSSARD <abrossard@reyl.com>
Message-ID:
<ZRAP278MB0593EBCDF3B2E16431B2812EDEC22@ZRAP278MB0593.CHEP278.PROD.OUTLOOK.COM>
Most of this looks to be solved, or solvable now, but I see no-one seems
to have replied to this particular comment:
| Add to this that it is extremely difficult to check whether -a is set
| or not without using an external command.
No, that's trivial:
case $- in
*a*) ;; # set -a
*) ;; # set +a
esac
just fill in whatever code you need. No externals, no difficulty.
kre