On 03/08/2017 05:24 PM, Dmitry Eremin-Solenikov wrote:
On 08.03.2017 17:13, Peltonen, Janne (Nokia - FI/Espoo) wrote:
Are you saying that in your shell this works (echoes foobar):
if false ; then : else echo foobar ; fi
Does not work here (bash 4.4.11(1)-release).
Ok, I understand what is going on. In bash
: some thing
is still one dummy command. Does not matter what follows ":". So there
has to be termination character.
It's the same as there were
echo some thing
Not sure why this make code work. But fix is needed.
Maxim.