rattle icon indicating copy to clipboard operation
rattle copied to clipboard

should chmod be a write?

Open spall opened this issue 6 years ago • 1 comments

One thing I have been seeing while creating a Rattle build for vim is the pattern of creating a file or directory and then immediately setting permissions for it. Right now "chmod" doesn't register as 'write', but I think it should? I know it isn't modifying the actual file or directory but it is modifying metadata.

spall avatar May 04 '19 15:05 spall

There are a few things here. Chmod should probably register as a write. We should also probably record/cache the permission bits on files, so we store them correctly. After all that, chmod will probably never be useful as it causes a write/write conflict if you create a file and chmod it as separate commands. I imagine a lot of people will do create && chmod as one action to get over that

ndmitchell avatar May 04 '19 16:05 ndmitchell