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: Greg Wooledge
Subject: Re: checking whether an array `excl` is set
Date: Sun, 25 Jul 2021 23:06:23 -0400

On Mon, Jul 26, 2021 at 04:50:27AM +0200, dora-solomon@brusseler.com wrote:
> Could I check whether an array `excl` is set using the command
> if [[ -v excl ]]; then

That does a thing.  Whether the thing that that does is the thing that
you want is a different question.

What do you mean by "check whether an array is set"?  Does it have
to have at least one element in it, or does an empty array count?

What are you actually trying to do?



reply via email to

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