variable assignments in script ${VAR1:=default}

ubu1404@ubuntu1404lb01:~$ echo ${a1:=default}
default
ubu1404@ubuntu1404lb01:~$ a1=val
ubu1404@ubuntu1404lb01:~$ echo ${a1:=default}
val
ubu1404@ubuntu1404lb01:~$ unset a1
ubu1404@ubuntu1404lb01:~$ echo ${a1:=default}
default
ubu1404@ubuntu1404lb01:~$

Comments

Popular posts from this blog

HAproxy logging

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all