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


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

Re: Code addition to BASH

Started byChet Ramey <chet.ramey@case.edu>
First post2020-01-21 16:14 -0500
Last post2020-01-21 16:14 -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 Chet Ramey <chet.ramey@case.edu> - 2020-01-21 16:14 -0500

#15822 — Re: Code addition to BASH

FromChet Ramey <chet.ramey@case.edu>
Date2020-01-21 16:14 -0500
SubjectRe: Code addition to BASH
Message-ID<mailman.3169.1579641298.1979.bug-bash@gnu.org>
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/

[toc] | [standalone]


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


csiph-web