[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: first arg of [[ always expand-safe ?
From: |
alex xmb sw ratchev |
Subject: |
Re: first arg of [[ always expand-safe ? |
Date: |
Thu, 22 Aug 2024 02:31:15 +0200 |
On Thu, Aug 22, 2024, 1:52 AM Greg Wooledge <greg@wooledge.org> wrote:
> On Thu, Aug 22, 2024 at 01:38:13 +0200, alex xmb sw ratchev wrote:
> > [[ smth == "$var" ]] <-- quotes required to not glob expand
>
> Well, not "glob expand" but rather "glob pattern matching".
>
> > [[ ! $var ]] <-- do this need rather quotes .. ?
>
> It does not need quotes, but you may use them if you prefer.
>
> Remember, globs don't *expand* inside [[ commands. They may be used as
> pattern matching patterns. Very different thing.
>
hm look : they pattern match , _and_ , expand to those
anyway thxx ++
>