我如何知道Bash中是否设置了变量?
例如,如何检查用户是否将第一个参数提供给函数?
function a { # if $1 is set ? }
variables bash shell
bash ×1
shell ×1
variables ×1