I\'m trying to run this script on Mac OS 10.7 (Lion) and I\'m getting the error:
$ bbcolors -bash: /usr/local/bin/bbcolors: /usr/bin/env: bad interpreter: Op
Did you happen to open/save the file in TextEdit?
That can introduce filesystem metadata (quarantine attribute) leading to the symptom you describe.
Try:
xattr -l /usr/local/bin/bbcolors
and
xattr -d com.apple.quarantine /usr/local/bin/bbcolors
if you see the quarantine attribute.