我试图通过wget下载flareget下载管理器,但出现错误
wget http://www.flareget.com/files/flareget/debs/amd64/flareget_2.3-24_amd64(stable)_deb.tar.gz
bash: syntax error near unexpected token `('
为什么会出现该错误,对此有什么解决方案?
在这种情况下(通常),您应该在URL周围使用单引号'
或双引号"
:
wget 'http://www.flareget.com/files/flareget/debs/amd64/flareget_2.3-24_amd64(stable)_deb.tar.gz'
从现在开始,在命令中使用包含括号作为参数的字符串时,通常应该使用此方法。这是因为括号用于由shell进行分组,因此括号不会以任何方式传递给命令。因此,bash shell将为您提供语法错误:
$ echo some (parentheses)
bash: syntax error near unexpected token `('
$ echo 'some (parentheses)'
some (parentheses)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句