Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

bad interpreter: Operation not permitted on Lion 10.7.3

My unix scripts are now dead, after the upgrade to 10.7.3. A typical error message is /bin/bash: bad interpreter: Operation not permitted Googling this issue shows other people are having build scripts fail and are fixing this by renaming links to libraries. My scripts are simple, they just run an executable, or used to... something like this:

#! /bin/bash

./myprogram << EOF

$1

EOF

MacPlus, SE30, iMacG3, EmacG4, PB G4, iMacG5, PowerMacG5, iMac Intel, Mac OS X (10.7.2)

Posted on Feb 13, 2012 10:07 AM

Reply
72 replies

Feb 13, 2012 6:08 PM in response to Linc Davis

Something like this, where the shell script is fistofdeath.sh.

The script has been made executable with chmod +x, or at least this used to work.



bash-3.2$ ls -@Oel ./fistofdeath.sh

-rwxr-xr-x@ 1 galfenol staff - 37 Feb 12 10:37 ./fistofdeath.sh

com.apple.FinderInfo 32

com.apple.ResourceFork 63127

com.apple.TextEncoding 15

com.apple.quarantine 23

bash-3.2$

bad interpreter: Operation not permitted on Lion 10.7.3

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.