判断参数是否为空-空退出并打印null #!/bin/sh echo $1 name=${1:?"null"} echo $name 相关文章: 2022-02-05 2022-01-21 2021-11-30 2022-12-23 2022-01-02 2021-09-09 2022-12-23