[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Code addition to BASH
From: |
Greg Wooledge |
Subject: |
Re: Code addition to BASH |
Date: |
Tue, 21 Jan 2020 16:15:51 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Tue, Jan 21, 2020 at 04:14:52PM -0500, Chet Ramey wrote:
> On 1/21/20 4:13 PM, William Theisen wrote:
> > I've just tested this, it's a little awkward but does actually work. Thanks
> > for the suggestion I'll play around with making it a little more
> > convenientĀ to use. Thanks for your time.
>
> If you don't want to destroy your script's positional parameters, you can
> wrap your loop in a shell function, which has its own set.
Or use an indexed array variable.