help-bash
[Top][All Lists]
Advanced

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

Re: Organising conditions


From: hancooper
Subject: Re: Organising conditions
Date: Mon, 02 Aug 2021 17:47:13 +0000

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, August 2, 2021 5:36 PM, Greg Wooledge <greg@wooledge.org> wrote:

> On Mon, Aug 02, 2021 at 05:06:34PM +0000, hancooper wrote:
>
> > Have done some tests and looks that I can also use seen[x-$file] as a key.
>
> Yes, any variant of the "x hack" will work, as long as you use it
> consistently.
>
> Without the x hack, it will work for all files except ones named "*"
> or "@", which means it'll still work 99.999% of the time. I prefer 100%
> solutions, though.

It is because $seen[@] and $seen[*] have the usual special meaning, right?



reply via email to

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