如何指定Bourne Shell(不是sh)

Jos*_*osh 3 unix bash shell scripting sh

我正在编写脚本,但我希望它以Bourne Shell开头。据我了解,使用以下命令启动脚本:

#! /bin/sh
Run Code Online (Sandbox Code Playgroud)

不会总是指定Bourne shell,而是指定任何操作系统链接到/ bin / sh。有没有一种方法可以明确指定Bourne?

谢谢!

I w*_*ce. 5

原始的Bourne Shell不是开源的,因此,如果您还没有它,那么您就是SOL。

如果您已经拥有它,只需将位置放在shebang中即可。

就那么简单。