you may want [[ -v arr[0] ]] ; or even [[ "${arr[@]}" ]] to be sure if
it has elements and they dont begin at 0
On Mon, Jul 26, 2021 at 4:50 AM <dora-solomon@brusseler.com> wrote:
>
>
> Could I check whether an array `excl` is set using the command
>
>
>
> if [[ -v excl ]]; then
>
>