bug-bash
[Top][All Lists]
Advanced

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

Re: Unsetting all elements of an associative array


From: Piotr Grzybowski
Subject: Re: Unsetting all elements of an associative array
Date: Wed, 4 Feb 2015 15:37:07 +0100

On Wed, Feb 4, 2015 at 2:39 PM, Greg Wooledge <wooledg@eeg.ccf.org> wrote:

> On that note, today I learned that you are not allowed to use either *
> or @ as the index of an associative array in bash.  I guess I can see why,
> but... that's probably going to break something some day.

 :)
 of course you can ;-)

declare -A a; a["@"]="right"; a["*"]="hoping that you are in an empty
directory";

cheers,
pg



reply via email to

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