help-bash
[Top][All Lists]
Advanced

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

Re: Use of $@


From: Greg Wooledge
Subject: Re: Use of $@
Date: Tue, 21 Feb 2023 08:06:23 -0500

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++)).



reply via email to

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