在 Ubuntu ( $ uname -a
: Linux kumanaku 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
) 上,我刚刚使用以下命令安装了fish ( $ fish --version
: fish, version 2.7.1
):
sudo apt-add-repository ppa:fish-shell/release-2
sudo apt-get update
sudo apt-get install fish
chsh -s /usr/bin/fish
echo /usr/bin/fish | sudo tee -a /etc/shells
Run Code Online (Sandbox Code Playgroud)
我可以启动fish
并使用它,但是当我启动一个简单的 shell 文件时,例如:
echo "something"
Run Code Online (Sandbox Code Playgroud)
我收到以下消息:
$ ./myscript.sh
Failed to execute process './myscript.sh'. Reason:
exec: Exec format error
The file './myscript.sh' is marked as …
Run Code Online (Sandbox Code Playgroud)