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


Groups > gnu.bash.bug > #15822

Re: Code addition to BASH

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Code addition to BASH
Date 2020-01-21 16:14 -0500
Message-ID <mailman.3169.1579641298.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>

Show all headers | View raw


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.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

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


Thread

Re: Code addition to BASH Chet Ramey <chet.ramey@case.edu> - 2020-01-21 16:14 -0500

csiph-web