Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次の bash 構文の意味:
function use_library { local name=$1 local enabled=1 [[ ,${LIBS_FROM_GIT}, =~ ,${name}, ]] && enabled=0 return $enabled }
行は特にわかりません[[ ,${LIBS_FROM_GIT}, =~ ,${name}, ]]。ある種の正規表現または文字列比較ですか?
[[ ,${LIBS_FROM_GIT}, =~ ,${name}, ]]