#!/bin/bashread -p “请输入参数:” nametest -z $nameif [ $? -eq 1 ]; then echo “入参:$name” else echo “入参为null” fi