[racket] DrRacket, OSX, and xattr
Is your file in dropbox? I've noticed some syncing apps can butcher xattr's, which is how I found this in the first place.—
Sent from Mailbox
On Thu, Jul 24, 2014 at 5:22 PM, Justin R. Slepak <jrslepak at ccs.neu.edu>
wrote:
> 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
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140724/5d0653d6/attachment.html>