Re: [GSoC] Shourya's Blog
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 17, 2020, 20:35 UTC
- Message-ID
- <xmqq4kr9toqi.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20200616072108.GA10273@konoha>
Shourya Shukla <shouryashukla.oo@gmail.com> writes:
Show 7 quoted lines
> Hello all! > > This is the sixth installation of my weekly blog covering what I have > learned in GSoC and other like stuff. > https://shouryashukla.blogspot.com/2020/06/gsoc-week-55.html > > Feel free to comment!
This like looked unusual:
var1=${var1:=$var2}What's inside ${...} is sufficient to assing to var1 when it is not uset or set to an empty string. It is far more common to say
: ${var1:=$var2}with or without the colon in front of the equal sign (which tells the construct to treat "set to empty" the same way as "unset").