[racket] DrRacket, OSX, and xattr
I see this prompt pretty frequently, and I've never explicitly touched xattr. I don't know if it's due to xattr being altered by something in the background, but it does seem to happen a lot.
---
Justin Slepak
PhD student, Computer Science dept.
----- Original Message -----
From: Spencer Florence <florence at northwestern.edu>
To: racket <users at racket-lang.org>
Sent: Thu, 24 Jul 2014 16:43:39 -0400 (EDT)
Subject: [racket] DrRacket, OSX, and xattr
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