Does Darwin/MacOS modify Bash?

后端 未结 3 1775
礼貌的吻别
礼貌的吻别 2021-01-19 18:56

I\'m wondering about the portability of Bash scripts that use Bash built-in commands.

I understand that each flavor of UNIX tends to modify various UNIX utilities. B

3条回答
  •  野性不改
    2021-01-19 19:31

    Apple use quite an old version of Bash, as they don't ship code that's licensed under GPL3. You can download the current version from Apple's open source site, and see that it at least claims to be vanilla Bash 3.2 (though obviously the Xcode project has been added).

提交回复
热议问题