• Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
all links
  • Returning Values from Bash Functions | Linux Journal

    Je prefere la deuxieme solution :

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

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

    November 14, 2013 - permalink - http://www.linuxjournal.com/content/return-values-bash-functions
    bash function