Bash Function -> Command not found -


hi gusy trying learn bash , cannot seem basic script work.

#!/bin/bash  function system_info {         echo "function system_info" }  $(system_info) 

i function: command not found issue.

any appreciated

bash trying evaluate string outputted system_info function. you'll want try following, run function:

system_info 

or store outputted value variable:

value=$(system_info) 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -