shell中的函数参数
  #!/bin/bash
  
  func_1()
  {
  
          echo $1
  }
  
  str="jeguan hello" //注意引号在这里的作用
  func_1 "$str"
 
  echo "please pay attention to the missed \"\""
  func_1 $str       //不带引号的时候
运行结果:
jeguan hello
please pay attention to the missed ""
jeguan
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号