operation not permitted running shell scripts
Hello,
I have already done the full disk access to terminal step as suggested. All commands in my text script (just simple command lines like "mv x y"). All commands work when I place them at the prompt. I used chmod +x script.sh, also sudo chmod +x script.sh, chmod 755 script.sh, chmod ugo+x script.sh and ugo+x script.sh...all of these seem to work until I type ./script.sh, at which point I get:
"zsh: operation not permitted: ./script.sh"
I even put in my script just the simple line: print "Hello world\n"
and it ages me the same output: "zsh: operation not permitted: ./script.sh"
the other solution I found seemed rather drastic since the commands themselves, outside the script, work fine, was to To Disable System Integrity Protection On the Mac!
what is the problem!
thank you.
MacBook Pro 13″, macOS 12.1