【问题标题】:Windows Linux Bash bad variable name when running /bin/sh -c "$(curl -fsS https://install.airshipcms.io)"运行 /bin/sh -c "$(curl -fsS https://install.airshipcms.io)" 时 Windows Linux Bash 变量名错误
【发布时间】:2017-11-12 21:24:59
【问题描述】:

在我更换主板/CPU 之前一切正常,但我不确定错误消息的含义。

运行安装命令后

/bin/sh -c "$(curl -fsS https://install.airshipcms.io)"

我的 windows ubuntu bash shell 返回

Starting Airship Launcher installation for ubuntu Linux64                                                                                                                                                                                       
Will install version 2.1.1                                                                                                                                                                                                                      
Downloading https://install.airshipcms.io/Linux64/airship-2.1.1.tar.bz2                                                 
To /tmp/AirshipLauncher.65/airship-2.1.1.tar.bz2                                                                        
Added ~/.airship-bin to $PATH in ~/.profile                                                                             
/bin/sh: 504: export: (x86)/Intel/iCLS: bad variable name    

我的猜测是因为我已经安装了主板/cpu 的预升级,所以变量名称已经在 ~/.profile 中了?我不确定如何编辑它,当我运行 cat ~/.profile 时,它​​呈现了一堆不可读的字符。 谢谢。

编辑:我尝试重新安装我的 linux shell,但无济于事。

【问题讨论】:

    标签: linux shell ubuntu curl windows-subsystem-for-linux


    【解决方案1】:

    好的,解决方法是用 bash 替换 sh,这样工作命令就可以了

    /bin/bash -c "$(curl -fsS https://install.airshipcms.io)"
    

    感谢这个人https://github.com/probonopd/PowerShell/commit/2441d99a7405b488dc9289789edb636dc2cdcdfc

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-03-06
      • 1970-01-01
      • 2015-12-23
      • 1970-01-01
      • 2014-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多