mac终端curl、wget报错parse error near `&‘

使用curl或者ffmpeg 访问带有&符号的地址时,报错parse error near `&'

【原因】没有对特殊字符进行转义 

【解决方案】1、对访问的url加上双引号"{URL}"调用命令行 2、连接&前加\ 就可以取消转义

你可能感兴趣的:(macos)