bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH v2] examples/s-f/Bash_aliases: Fix off-by-one error


From: Martin D Kealey
Subject: Re: [PATCH v2] examples/s-f/Bash_aliases: Fix off-by-one error
Date: Wed, 24 Sep 2025 20:25:50 +1000

On Tue, 23 Sep 2025, 00:12 Chet Ramey, <chet.ramey@case.edu> wrote:

> On 9/22/25 3:24 AM, Gioele Barabucci wrote:
>
> > +    for ((i=1; i<=n; i++)); do
> > +        "$@"
>
> You need the eval, otherwise something like
>
> repeat 5 v+=f
>
> fails.
>

repeat 5 eval v+=f

(no special flag or syntax required)

-Martin


reply via email to

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