Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15824 > unrolled thread

Re: Code addition to BASH

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2020-01-21 16:15 -0500
Last post2020-01-21 16:15 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Code addition to BASH Greg Wooledge <wooledg@eeg.ccf.org> - 2020-01-21 16:15 -0500

#15824 — Re: Code addition to BASH

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2020-01-21 16:15 -0500
SubjectRe: Code addition to BASH
Message-ID<mailman.3171.1579641390.1979.bug-bash@gnu.org>
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.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web