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: Chet Ramey
Subject: Re: [PATCH v2] examples/s-f/Bash_aliases: Fix off-by-one error
Date: Mon, 22 Sep 2025 14:57:17 -0400
User-agent: Mozilla Thunderbird

On 9/22/25 2:25 PM, pourko@tutamail.com wrote:

With or without eval, or with any combination thereof, you still
won't be able to make a repeat function that covers all the bases.
For example, you won't be able to do this:

repeat { ((x++)); echo $x;}

If you want to use operators in the command, you're going to have to quote
them.


Such a thing can only be done by a bash internal command, like...

It has to be a compound command, yes. Not a builtin.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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