Lion 10.7.3 bug affects shell script executables

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Lion 10.7.3 bug affects shell script executables

Post by berkinet »

After suddenly running into bad interpreter: Operation not permitted errors trying to run a shell script, I uncovered the following on the Apple Support Communities forums
  • ...there appears to be a bug in the latest version of OS X Lion in which the quarantine flag is attached to existing files on the system, preventing some code such as user scripts from being executed. If you create shell scripts, for instance, then opening them in TextEdit and making changes to them will result in them no longer being executable and will result in an "Operation not permitted" error in the Terminal.
That was exactly what I had done, I opened a shell script with TextEdit just to copy part of it to send in an email.

If you run into this problem, see this link for the fix.

Return to “Extending Indigo with Plugins and Python”