|
| From: | uzibalqa |
| Subject: | Locas arrays to functions |
| Date: | Mon, 01 May 2023 21:41:00 +0000 |
I was under the impression that arrays are always global when passed to a function as a positional argument. Should they be passed as reference? local -n _array="$2" Would I need the quotes as in "$2" ?
| [Prev in Thread] | Current Thread | [Next in Thread] |