[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash optimization away question
From: |
Andreas Kähäri |
Subject: |
Re: bash optimization away question |
Date: |
Sun, 3 Nov 2024 09:16:49 +0100 |
On Sun, Nov 03, 2024 at 01:29:02AM +0100, #!microsuxx wrote:
> is a
>
> var=${var:-blabla}
>
> optimized away to no exec at all
> if var is not empty
> ?
>
> also same for = := -
There is already no exec involved in the expansion of the parameter.
What do you expect to gain from optimizing this away, compared to
optimizing something else? Compared to actually executing an external
command, the time spent on this is negligible.
--
Andreas (Kusalananda) Kähäri
Uppsala, Sweden
.