help-bash
[Top][All Lists]
Advanced

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

Re: Organising conditions


From: Greg Wooledge
Subject: Re: Organising conditions
Date: Mon, 2 Aug 2021 13:48:19 -0400

On Mon, Aug 02, 2021 at 05:47:13PM +0000, hancooper wrote:
> ‐‐‐‐‐‐‐ 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?

Yup.



reply via email to

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