Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • while yes, I do indeed use bash, i would prefer to have something more portable, though I will use bash if that's the more practical thing to do Commented May 15, 2023 at 12:18
  • oops I completely misunderstood the task Commented May 15, 2023 at 13:14
  • Oh, oh, oh, sorry! Was that an answer? I thought you were just clarifying what you need. Answering your own question is not frowned upon at all. It is actually actively encouraged. This still doesn't make the variables survive after the while finishes, is that really all you need? If so, please let me know and I will udnelete your answer with my apologies. Commented May 15, 2023 at 13:44
  • @terdon I believe that was an answer. I have undeleted. Commented May 15, 2023 at 13:46
  • Fair enough. Sorry, @Dr.Coomer, my bad! I now rolled back my edit since it was I, not you, who was being dumb! Commented May 15, 2023 at 13:47