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 de
7 hours ago
tcl by Bradipo
1 days ago
tcl by Bradipo
1 days ago
tcl by kotrcka
27 days ago
tcl by kotrcka
27 days ago
tcl by aspect
44 days ago
tcl by libertas
44 days ago
tcl by avl
48 days ago
tcl by vktec
48 days ago
tcl by vktec
48 days ago
Submit
New paste
Documentation
From Jabber