git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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").

Previous: Shourya Shukla
Message 4 of 4 in “[GSoC] Shourya's Blog”
  1. Shourya ShuklaJun 16, 2020
  2. Kaartic SivaraamJun 17, 2020
  3. Shourya ShuklaJun 20, 2020
  4. Junio C HamanoJun 17, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.