bash - modify an array by name
Posted to
tcl
by Poor Yorick at Tue Dec 10 10:25:14 GMT 2019
view raw
#! /bin/env bash
params=( "$@" )
f1 () {
local -n var
var="
$1
"
set
-- "
${var[@]}
"
while
[ $# -gt 0 ] ; do
echo "
$1
"
shift
break
done
var="$@"
}
f1 params
Recent Posts
tcl by kevin_walzer
4 hours ago
tcl by meissa
10 hours ago
tcl by meissa
10 hours ago
tcl by meissa
11 hours ago
tcl by meissa
11 hours ago
tcl by miessa
11 hours ago
tcl by sevarat
5 days ago
tcl by mookie
21 days ago
tcl by apn
22 days ago
tcl by schelte
24 days ago
Submit
New paste
Documentation
From Jabber