[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++)).
- Re: Use of $@, (continued)
- Re: Use of $@, Greg Wooledge, 2023/02/21
- Re: Use of $@, Kerin Millar, 2023/02/21
- Re: Use of $@, alex xmb ratchev, 2023/02/21
- Re: Use of $@, alex xmb ratchev, 2023/02/21
- Re: Use of $@, Chris F.A. Johnson, 2023/02/21
- Re: Use of $@, alex xmb ratchev, 2023/02/21
- Re: Use of $@, Greg Wooledge, 2023/02/21
- Re: Use of $@, Greg Wooledge, 2023/02/21
- Re: Use of $@, alex xmb ratchev, 2023/02/21
- Re: Use of $@, Kerin Millar, 2023/02/21
- Re: Use of $@,
Greg Wooledge <=
- Re: Use of $@, Chet Ramey, 2023/02/21
- Re: Use of $@, Christof Warlich, 2023/02/23
- Re: Use of $@, alex xmb ratchev, 2023/02/23
- Re: Use of $@, Chet Ramey, 2023/02/23
- Re: Use of $@, alex xmb ratchev, 2023/02/21
- Re: Use of $@, Greg Wooledge, 2023/02/21