Linux只支持shebang行中的一个参数:
这是:
#!/bin/sh
cat > pr_args <<'EOF'
#!/bin/sh -e
printf "'%s'\n" "$@"
EOF
cat > shebang <<'EOF'
#!pr_args a b c
EOF
chmod +x pr_args shebang
./shebang A B C
rm shebang pr_args版画
'a b c'
'./shebang'
'A'
'B'
'C'我会在哪里买到什么
'a'
'b'
'c'
'./shebang'
'A'
'B'
'C'?Mac是做什么的?
发布于 2017-07-18 04:52:12
要查看shebang机制的所有细节,请使用Mascheck页面
特别是关于"分裂论点“的项目和下表,以查看许多不同系统的详细信息。
还可以看一看:"翻译为#!脚本“来理解并非所有的系统都允许一个shebang调用其他的shebang脚本。
如果你需要/需要更多的细节,就问吧。
https://unix.stackexchange.com/questions/379020
复制相似问题