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


Groups > gnu.bash.bug > #15824

Re: Code addition to BASH

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Code addition to BASH
Date Tue, 21 Jan 2020 16:15:51 -0500
Lines 11
Approved bug-bash@gnu.org
Message-ID <mailman.3171.1579641390.1979.bug-bash@gnu.org> (permalink)
References <CANx=xzbMYaYR0SCWntJr0Mv9JQ=Nsx7iBaaGrUd6-JvN0appNA@mail.gmail.com> <a92035ce-32f4-367a-f308-cbc3eb423adf@case.edu> <CANx=xzbst=op=kY9z8q4FYAyqOeK2Tp5zhMpKJcpr-EmVfpv4Q@mail.gmail.com> <e27ac04f-beda-eb0a-801f-0747c3820332@case.edu> <20200121211551.GL851@eeg.ccf.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Transfer-Encoding 8bit
X-Trace usenet.stanford.edu 1579641391 27983 209.51.188.17 (21 Jan 2020 21:16:31 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
Mail-Followup-To bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <e27ac04f-beda-eb0a-801f-0747c3820332@case.edu>
User-Agent Mutt/1.10.1 (2018-07-13)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 139.137.100.1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200121211551.GL851@eeg.ccf.org>
X-Mailman-Original-References <CANx=xzbMYaYR0SCWntJr0Mv9JQ=Nsx7iBaaGrUd6-JvN0appNA@mail.gmail.com> <a92035ce-32f4-367a-f308-cbc3eb423adf@case.edu> <CANx=xzbst=op=kY9z8q4FYAyqOeK2Tp5zhMpKJcpr-EmVfpv4Q@mail.gmail.com> <e27ac04f-beda-eb0a-801f-0747c3820332@case.edu>
Xref csiph.com gnu.bash.bug:15824

Show key headers only | View raw


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.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web