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
Post a Comment