Skip to main content
4 events
when toggle format what by license comment
Jun 14 at 8:17 comment added Oliver Williams This little gem (plus the comment by @gcb) is actually the most direct answer to the OP's essential question: "Why is the syntax different than what I was expecting?" Answer: "The local keyword is defining multiple variables". If all the other answers to this post were gone, this would be sufficient.
Nov 26, 2023 at 13:39 comment added gcb NOTE: for portability, avoid local with more than one term. Only bash have this feature. all other shells only take a single variable at a time.
May 8, 2015 at 20:46 vote accept Alexandre Santos
Jun 18, 2019 at 22:30
May 8, 2015 at 20:04 history answered jordanm CC BY-SA 3.0