Hello,
I was running a script through mksh, ash, dash and bash.
I noticed this: with dash 0.5.7 from pkgsrc, the following example code does not emit an error:
Code:
#! /usr/bin/env dash
a=1
if [ "$a" = "1" ]; then
:
else
echo foo
fi
However, with dash 0.5.6.1 and later 0.5.7 built from SBo (I just changed the version number in the SlackBuild), I get:
Code:
./script: 6: ./script: :: not found
Am I using it wrongly? I didn't see any relevant patches in the pkgsrc version, but maybe I'm missing something? The man page of dash mentions : as a builtin, if I'm not mistaken.
Regards
lems