[Top][All Lists]

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

Any plan to handle Bash 5.0 BASH_ARGC & BASH_ARGV?

From: Tadeus Prastowo
Subject: Any plan to handle Bash 5.0 BASH_ARGC & BASH_ARGV?
Date: Thu, 20 Feb 2020 19:46:13 +0100


When building
using Bash 5.0, make check reports many failures concerning the
following Bash 5.0's change of behavior, quoting

There are a few incompatible changes between bash-4.4 and bash-5.0.
[...]  By default, the shell only sets BASH_ARGC and BASH_ARGV at
startup if extended debugging mode is enabled; it was an oversight
that it was set unconditionally and caused performance issues when
scripts were passed large numbers of arguments.

End quote.

A sample test failure is as follows:
+--- at_config_vars-state-env.r1    2020-02-20 15:01:43.684855852 +0000
++++ at_config_vars-state-env.r2    2020-02-20 15:01:43.688855866 +0000
+@@ -2,8 +2,8 @@
+ BASH=/bin/sh
+ BASH_LINENO=([0]="0")
+ BASH_SOURCE=([0]="./configure")
./ exit code was 1, expected 0

Additionally, the following behavior might complicate a possible

So, how to handle Bash 5.0's behavior during make check?

Thank you.

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]