help-bash
[Top][All Lists]
Advanced

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

Re: Invisible contents of a variable array?


From: Greg Wooledge
Subject: Re: Invisible contents of a variable array?
Date: Sat, 21 Jan 2023 08:30:45 -0500

On Sat, Jan 21, 2023 at 03:51:37PM +1100, David wrote:
> Or, don't even declare the array. Just initialise it:
> 
> _files=( )

Yes, this is the critical piece.  An empty array is () not "".

If one insists on using declare, it would be:

declare -a _files=()



reply via email to

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