Printing two variables - only second one printed when run from script
<p>I'm trying to print to sting1 and string2 with a space in between using shell script.
defined strings a,b and printing them using echo with a space in between. However, a is replaced by b as below.</p>

<pre><code>a='30 Jan 2016 22:'
b='30 Jan 2016 23:'
echo $a $b
</code></pre>

<p>Output: </p>

<pre><code>30 Jan 2016 23:
</code></pre>

<p>String1 is override by string2 to display. However, the same is working from command prompt as below:</p>

<pre><code>$ a='30 Jan 2016 22:'
$ b='30 Jan 2016 23:'
$ echo $a $b
30 Jan 2016 22: 30 Jan 2016 23:
</code></pre>

<p>Why do these behaviors differ?</p>