I used ZZ=$(test "aa" "bb") because I want to set ZZ to the result of that function using those 2 options/parms.
However, when I echo the content of $ZZ, it is empty.
In my testz library function, I added an echo on both $1 and $2 to see if the "aa" and "bb" were passed on. They are.
test.sh#!/bin/ksh
. testlib.sh
ZZ=$(testz "aa" "bb")
echo "$ZZ"
exit 0
testlib.shtestz () {
echo $1
echo $2
return "$1$2"
}
Also, lets say I want to return more then one value back (ex: 10 03 2010) without putting them into quotes, is it possible ?