小编sui*_*kan的帖子

鱼壳:执行格式错误

在 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)

shell shell-script fish

8
推荐指数
2
解决办法
6686
查看次数

标签 统计

fish ×1

shell ×1

shell-script ×1