<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Setting default value for BASH variable'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sun, 19 Apr 2026 18:59:44 +0000</lastBuildDate>
    <item>
      <title>deepsoul said on 26/Jul/2009</title>
      <link>https://snipplr.com/view/11080/setting-default-value-for-bash-variable</link>
      <description>&lt;p&gt;When the value is not to be assigned to a new variable, this can be abbreviated to:&#13;
&#13;
    : ${var:=$default}&#13;
&#13;
: does nothing but evaluate its argument, which assigns the $default to $var if it is unset.&lt;/p&gt;</description>
      <pubDate>Sun, 26 Jul 2009 17:29:20 UTC</pubDate>
      <guid>https://snipplr.com/view/11080/setting-default-value-for-bash-variable</guid>
    </item>
  </channel>
</rss>
