Bash Function -> Command not found

前端 未结 4 1070
后悔当初
后悔当初 2021-01-17 11:11

Hi gusy I am trying to learn Bash and cannot seem to get this basic script to work.

#!/bin/bash

function system_info
{    
    echo \"function system_info\"         


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-17 11:44

    You need to invoke the function by saying:

    system_info
    

    $(...) is used for command substitution.

提交回复
热议问题