导航

2021年7月13日 #

函数传参 数组: 放弃了,读全局变量

摘要: $cat gg.sh #! /bin/bash group1=([0]="apple orange" [1]="pear")group2=([0]="apple orange" [1]="pear") function gg() { tmp=$1 echo ${tmp[0]} echo ${tmp[ 阅读全文

posted @ 2021-07-13 18:21 toughcactus 阅读(29) 评论(0) 推荐(0) 编辑