(f) rm *args
This commit is contained in:
parent
2fb1cede92
commit
eeb337eb9a
1 changed files with 0 additions and 38 deletions
|
|
@ -94,44 +94,6 @@ function c4.f.dval {
|
|||
}
|
||||
#### -END c4.f.dval
|
||||
|
||||
|
||||
#### c4.f.prgs_Array -
|
||||
### create associative array from (quoted) name list and args
|
||||
function c4.f.pargs {
|
||||
declare -la rv=()
|
||||
while test -n "$1" ; do
|
||||
rv+=$1; shift
|
||||
done
|
||||
c4.f.dval rv
|
||||
}
|
||||
#### -END c4.f.pargs_Array
|
||||
|
||||
#### c4.f.sargs_Array -
|
||||
### create array from (quoted) string list
|
||||
function c4.f.sargs {
|
||||
local -a rv;n
|
||||
local -i i=0;
|
||||
for arg in $1 ; do
|
||||
rv+=$arg;
|
||||
done
|
||||
c4.f.dval rv
|
||||
}
|
||||
#### -END c4.f.sargs
|
||||
|
||||
#### c4.f.nrgs_Array -
|
||||
### create associative array from (quoted) name list and args
|
||||
#(eval "declare -lA v=($( . ghostwheel.fn.sh; c4.f.nargs "a b" "c" "d" ))"; echo "${v[a]}") #c
|
||||
function c4.f.nargs {
|
||||
local names="$1"; shift;
|
||||
local -A rv;
|
||||
local n; for n in $names ; do
|
||||
rv[$n]="$1";
|
||||
shift;
|
||||
done
|
||||
c4.f.dval rv
|
||||
}
|
||||
#### -END c4.f.pargs_Array
|
||||
|
||||
function c4.t.b {
|
||||
C4_TN=$((++C4_TN))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue