今天在运行transformer-xl的脚本的时候,出现了下面的错误:

=== Acquiring datasets ===
---
: 7: : [[: not found
- Downloading WikiText-103 (WT2)
: 19: : [[: not found
- Downloading enwik8 (Character)
: 30: : [[: not found
- Downloading text8 (Character)
: 40: : [[: not found
- Downloading Penn Treebank (PTB)
: 49: : [[: not found
- Downloading 1B words
: 73: : [[: not found
---
Happy language modeling :)

我的运行命令为:

sh 

解决方法

bash 

参考文献

[1].Linux shell脚本执行提示错误[[: not found.