Path: utzoo!utgpu!water!watmath!clyde!att!occrsh!rjd From: rjd@occrsh.ATT.COM (Randy_Davis) Newsgroups: comp.unix.wizards Subject: Re: . file question (bug?) Message-ID: <314@occrsh.ATT.COM> Date: 5 Aug 88 18:13:32 GMT References: <1670002@hpcilzb.HP.COM> Reply-To: rjd@occrsh.UUCP (Randy_Davis) Organization: AT&T Network & Data Systems, OKC Lines: 31 In article <1670002@hpcilzb.HP.COM> tedj@hpcilzb.HP.COM (Ted Johnson) writes: : :When does the "." file, which describes the current directory, :get updated? Only when you do an fsck? : :In the following example, I created a directory and make 2 files. :After deleting one of the files, the "." file thought that they :were both still there. Is this a bug??? No it didn't, the names just happened to still be in the file, but they were marked as removed by setting the inode reference to zero, something that the strings program will not show you. :hpcillm(tedj) 279>strings . :hpcillm(tedj) 280>touch file1 :hpcillm(tedj) 281>strings . :file1 :hpcillm(tedj) 282>touch file2 :hpcillm(tedj) 283>strings . :file1 :file2 :hpcillm(tedj) 284>rm file2 :hpcillm(tedj) 285>strings . :file1 :file2 :hpcillm(tedj) 286>ls :file1 Try "od -c .", if you have it. It will show everything pertainent. Randy