|
| From: | Chris Elvidge |
| Subject: | Re: [PATCH] examples/s-f/Bash_aliases: Fix off-by-one error |
| Date: | Sat, 20 Sep 2025 12:43:07 +0100 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4 |
On 20/09/2025 at 00:01, Gioele Barabucci wrote:
From: Nicolas Aupetit <nicolas.aupetit+reportbug@ebzao.info>
The `repeat` function calls the provided command one time too many:
repeat 10 echo "foo" | wc -l ⇒ 11
Surely that depends on your definition of repeat. Do it and repeat it 10 times vs. Do it a total of 10 times -- Chris Elvidge England
| [Prev in Thread] | Current Thread | [Next in Thread] |