Redundant use of :- in Bash?

后端 未结 0 1669
梦毁少年i
梦毁少年i 2021-01-27 09:45

I have this code inside a function:

local var="$1"
local fileVar="${var}_FILE"
local def="${2:-}"
if [ "${!var:-}" ] &         


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