help-bash
[Top][All Lists]
Advanced

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

Re: checking whether an array `excl` is set


From: Alex fxmbsw7 Ratchev
Subject: Re: checking whether an array `excl` is set
Date: Mon, 26 Jul 2021 22:12:54 +0200

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
>
>



reply via email to

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