On 30 Apr 2012, at 7:11 PM, <[email protected]> wrote:

> on 2012-04-30 16:51 Dinse, Gregg (NIH/NIEHS) [E] wrote
>> When I first moved to Lion, I tried running a SAS program and it seemed to 
>> work.  It turns out that if I do not edit the SAS script, it will run, but 
>> as soon as I make a change and save the file, it will not run.  I get the 
>> following error message:
>> 
>> -bash: ./nlin.csh: /bin/csh: bad interpreter: Operation not permitted
> 
> i googled your error message and came up with the suggestion that you remove 
> the quarantine attribute from your script file
> 
>   xattr -d com.apple.quarantine nlin.csh
> 
> lots more if you do a search yourself ...

Hi Steve,

Thank you very much for the help.  I don't know why I did not think of googling 
the error message.

The above command allowed my script to run again.  Of course, if I use TextEdit 
to make any additional changes to the script, I get the error message again and 
have to run the xattr command again, so the "fix" is not permanent.

I spent a few minutes googling.  It appears that the quarantine attribute, 
which I had never heard of, is new in 10.7.3.  Also, it appears that TextEdit 
"causes" this problem, but some other text editors such as TextWrangler do not.

Perhaps I will have to switch to a different editor, at least for scripts.  
Alternatively, do you know of a way to tell TextEdit not to mess with the 
quarantine attribute?

Thanks again,

Gregg

_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to