Re: Zero-length indexed arrays

2021-12-22 Thread L A Walsh
On 2021/12/21 20:07, Greg Wooledge wrote: On Tue, Dec 21, 2021 at 10:48:07PM -0500, Dale R. Worley wrote: Lawrence Vel�zquez writes: Did you mean to say that ${#FOO[*]} causes an error? Because ${FOO[*]} does not, a la $*: The case that matters for me is the Bash that shi

Re: Zero-length indexed arrays

2021-12-22 Thread Chet Ramey
On 12/22/21 12:12 AM, Lawrence Velázquez wrote: a. Using ${a[@]} or ${a[*]} with an array without any assigned elements when the nounset option is enabled no longer throws an unbound variable error. https://lists.gnu.org/archive/html/bug-bash/2016-07/msg00031.html --

Re: Space vs. non-space separators in COMP_WORDBREAKS

2021-12-22 Thread konsolebox
On Mon, Dec 20, 2021 at 2:21 PM Chet Ramey wrote: > Except that turns out not to be useful. It's intuitive to say that > whitespace separates words and the non-whitespace word break characters > allow you to complete on parts of words. But it's still a special case that needs to be documented. I

Re: Zero-length indexed arrays

2021-12-22 Thread konsolebox
On Wed, Dec 22, 2021 at 4:07 AM Greg Wooledge wrote: > I would recommend not using set -u. > Especially > when you need to support multiple bash versions, or even multiple shells. It's still useful during development stages. -- konsolebox