On Tue, Feb 21, 2023 at 01:00:41PM +0000, Kerin Millar wrote:
> You could make it work in this particular fashion by writing "for ((i = 0; i
> < $#; i++)); do ...; done", though you would have to account for i being
> off-by-one.
I tried that first, but it starts iterating with $0 which is clearly
not what we want. That's why I switched to ((i=1; i <= $#; i++)).