Is there an equivalent Bash operator to Perl's logical defined-or? Some开发者_运维百科thing akin to:
$a = $a // $b;
OR
$a ||= $b;
"Assign Default Values" parameter expansion.
echo "${foo:=42}"
Is there an equivalent Bash operator to Perl's logical defined-or? Some开发者_运维百科thing akin to:
$a = $a // $b;
OR
$a ||= $b;
"Assign Default Values" parameter expansion.
echo "${foo:=42}"
精彩评论