pg0xC
pg0xC

Reputation: 1266

sh '<' syntax unexpected error

I am struggling with running new asp.net 5 on my qnap box. As far as I understand it is a strongly modified version of debian.

As part of running installation script I got this error:

-sh: /root/.dnx/dnvm/dnvm.sh: line 616: syntax error near unexpected token `<'
-sh: /root/.dnx/dnvm/dnvm.sh: line 616: read versionOrAlias downloadUrl < <(__dnvm_find_latest "$runtime" "$arch" "$os")'

I run my script bu using script command like:

script /root/.dnx/dnvm/dnvm.sh

as stated in documentation and previous installation script.

By commenting this line out I was able to run whole script but obviously dnvm command does not work properly.

My question is: What does it do (line with < < syntax) and how do I fix it or rewrite so that my qnap box unix can understand it.

Upvotes: 0

Views: 169

Answers (1)

choroba
choroba

Reputation: 242218

<(...) is Process substitution. /bin/sh doesn't support it, but /bin/bash does. Try changing the shell.

Upvotes: 3

Related Questions