help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Locas arrays to functions


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" ?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]