29 Apr
2005
29 Apr
'05
20:47
On Friday, April 29, 2005 @ 9:16 AM, Jul wrote:
On Friday 29 April 2005 01:51, Greg Wallace wrote:
Of course you're right. I saw that ~ sign when I read it, but I was thinking 066 & 022 would be 644. I just did it on a piece of paper and, just as you say, it's 066 & ~022 = 066 & 055 = 644. I knew that was the default for new files, but I didn't realize it was implemented via umask that way.
Greg Wallace
~022=~(000 010 010) =000 101 101=055 066&055=(000 110 110)&(000 101 101)=044 ------------------------------- other way: 000 110 110 000 101 101
000 100 10
Cheers Jul.
Yeah, I got a little sloppy there (it was the wee hours of the morning). What I meant to write was - 666 & ~022 = 666 & 755 = (110 110 110 & 111 011 011) = 110 010 010 = 644 Greg Wallace