"Alastair Haldane" <22*6*3*[email protected]*u*e*t*u*a*e*u*a*> wrote:> Thanks Maktoom, if I run the command with sudo - it works fine, and doesn't change the file permissions. So yes it would seem that the temp file sed creates is tripping me > up somewhere in windows file permissions.
I can't replicate the problem on macOS or Linux (even while simultaneously editing the file),
so it does sound like Windows doing strange things.
It's a 'common/boring' kind of operation, but I can't find related discussion about it online.
sed changing rw to r permissions on files in WSL (all 7)