// out :ln: /bin/bash: Operation not permitted # 需要关闭系统[SIP](https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/Introduction/Introduction.html)
进入系统Recovery模式 ,重启cmd+R进入:
csrutil disable csrutil enable
// mv: rename /bin/bash to /bin/bash.bak: Read-only file system // ln: /bin/bash: File exists # 第一步 //先检查 csrutil status // System Integrity Protection status: disabled. # 第二步 sudo mount -uw /
for Jenkins:
给jenkins设置shell 路径 ,这里需要给系统用户操作jenkins目录的权限
还是升级系统bash划算
0x1:
Error:zsh: bad set of key/value pairs for associative array
zsh --version // out: zsh 5.7.1 // 错误提要 local 和declare 报相同错误 // declare bash 4.0以上才支持 TAGS='a 1 b 2 c 3' local -A tag=($TAGS) // out :zsh: bad set of key/value pairs for associative array