Warn upon "declare -ax"

2023-09-04 Thread Dan Jacobson
Shouldn't "declare -ax" print a warning that it is useless?

Re: Warn upon "declare -ax"

2023-09-04 Thread Léa Gris
Le 04/09/2023 à 14:18, Dan Jacobson écrivait : Shouldn't "declare -ax" print a warning that it is useless? There don's seem to be any warning system in Bash or other shells. As long as it is not a fatal error condition and errexit is not set, execution continue. There are static analysis to

Re: Warn upon "declare -ax"

2023-09-04 Thread Kerin Millar
On Mon, 4 Sep 2023 14:46:08 +0200 Léa Gris wrote: > Le 04/09/2023 à 14:18, Dan Jacobson écrivait : > > Shouldn't "declare -ax" print a warning that it is useless? > > There don's seem to be any warning system in Bash or other shells. As > long as it is not a fatal error condition and errexit is