Xref: utzoo comp.unix.wizards:20839 comp.unix.questions:20309 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: Where should the ".." file be ? Message-ID: <12266@smoke.BRL.MIL> Date: 2 Mar 90 03:31:08 GMT References: <428@marvin.jpl.oz> Reply-To: gwyn@brl.arpa (Doug Gwyn) Followup-To: comp.unix.wizards Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <428@marvin.jpl.oz> lm@marvin.jpl.oz (Luigi Martin) writes: >I would like to know if the .. file HAS to be the second file entry in a >directory; or if the .. file can appear anywhere ( which means there is a bug >in the depths of the find command ). There need not even be any entries for "." and "..", although the kernel still is obliged to understand their conventional meaning when handling pathnames that contain these as pathname components. Software that depends on "." or ".." being returned via readdir() or equivalent directory scanning procedure is not very universal; software that assumes that such entries are in particular slots in a directory is really out on a limb. It should be fixed.