Horje
linux function return Code Example
linux function return
function myfunc()
{
    local  result=$1
    local  myresult='some value'
    eval $result="'$myresult'"
}

myfunc result
echo $result
linux function return
function myfunc()
{
    local  myresult='some value'
    echo "$myresult"
}

result=$(myfunc)   # or result=`myfunc`
echo $result




Shell

Related
letsencrypt windows tomcat Code Example letsencrypt windows tomcat Code Example
cmd file list to text Code Example cmd file list to text Code Example
fedora videos not working without bluetooth Code Example fedora videos not working without bluetooth Code Example
homebrew install sass Code Example homebrew install sass Code Example
uninstall flake 8 in vs Code Example uninstall flake 8 in vs Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11