Check if “the parameter named by the value of x” is set

前端 未结 0 1276
Happy的楠姐
Happy的楠姐 2020-12-17 07:31

I am currently using a piece of code like this:

if (( $( eval "echo \\${+$foo}" ) )); then
  ./foo
fi

Is there a more elegant or co

相关标签:
回答
  • 消灭零回复
提交回复
热议问题