[racket] DrRacket, OSX, and xattr

From: Spencer Florence (florence at northwestern.edu)
Date: Thu Jul 24 16:43:39 EDT 2014

Hi all,

Whenever I save a file with DrRacket on OSX, it always sets some extended
attributes on the file. Specifically it sets:

[snips:pl7/examples] xattr -l somefile.rkt
com.apple.FinderInfo:
00000000  54 45 58 54 44 72 53 63 00 00 00 00 00 00 00 00
 |TEXTDrSc........|
00000010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 |................|
00000020

In addition if I clear the xattr's (via xattr -c) DrRacket treats this as
an external write to the file and prompts me to overwrite on save and
revert on run. Is this behavior intended? It seems odd given that DrRacket
doesn't do this with normal attributes (permission, suid bit, etc.) If it
is intended what is the rational and can I disable it?

--Spencer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140724/94269b2a/attachment.html>

Posted on the users mailing list.