SH'&LT;'语法意外错误 [英] sh '<' syntax unexpected error
问题描述
我与我的QNAP机器上运行新的asp.net 5挣扎。据我的理解是Debian的一个强烈的修改版本。
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
在文档和previous安装脚本说。
as stated in documentation and previous installation script.
通过注释这一行了,我能够运行整个脚本,但显然dnvm命令无法正常工作。
By commenting this line out I was able to run whole script but obviously dnvm command does not work properly.
我的问题是:
它是做什么(以&lt行;&LT;语法)。如何解决呢或重写,使我QNAP箱UNIX可以把它理解
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.
推荐答案
≤(...)
是进程替换。 / bin / sh的
不支持它,但 /斌/庆典
一样。尝试改变壳。
<(...)
is Process substitution. /bin/sh
doesn't support it, but /bin/bash
does. Try changing the shell.
这篇关于SH'&LT;'语法意外错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!