什么:在变量赋值bash中意味着什么? [英] What does : mean in the variable assignment bash?

查看:108
本文介绍了什么:在变量赋值bash中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是什么意思:在变量赋值的开头是什么意思?

:$ {var:= value}



什么我试过了:



这两个在bash脚本中有什么不同?

:$ {var:= value} 
$ {var:= value}

解决方案

{var:= value}



我尝试了什么:



这两个在bash脚本中有什么不同?


{var:= value}


{var:= value}


what does : mean in the beginning of variable assignment?
: ${var:=value}

What I have tried:

what is different between these two in bash script?

: ${var:=value}
  ${var:=value}

解决方案

{var:=value}

What I have tried:

what is different between these two in bash script?

:


{var:=value}


{var:=value}


这篇关于什么:在变量赋值bash中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆