help-bash
[Top][All Lists]
Advanced

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

Re: bash optimization away question


From: #!microsuxx
Subject: Re: bash optimization away question
Date: Sun, 3 Nov 2024 01:45:49 +0100

i see
well tested i guess

i suggest add that optimization

greets !!

On Sun, Nov 3, 2024, 01:44 Lawrence Velázquez <vq@larryv.me> wrote:

> On Sat, Nov 2, 2024, at 8:29 PM, #!microsuxx wrote:
> > is a
> >
> > var=${var:-blabla}
> >
> > optimized away to no exec at all
> > if var is not empty
> > ?
> >
> > also same for = := -
>
> Presumably not, otherwise this wouldn't be an error:
>
>         $ readonly var=notempty
>         $ var=${var:-blabla}
>         bash: var: readonly variable
>
> --
> vq
>


reply via email to

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