Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!orstcs!nucthy!ghe From: ghe@nucthy.physics.orst.edu (Guangliang He) Newsgroups: comp.unix.wizards Subject: Re: Dot files always first in directory? Message-ID: <10406@orstcs.CS.ORST.EDU> Date: 5 May 89 16:27:02 GMT References: <11108@bloom-beacon.MIT.EDU> <3540@udccvax1.acs.udel.EDU> Sender: usenet@orstcs.CS.ORST.EDU Reply-To: ghe@nucthy.PHYSICS.ORST.EDU (Guangliang He) Organization: Dept. of Physics, Oregon State University Lines: 22 In article <3540@udccvax1.acs.udel.EDU> conan@vax1.acs.udel.EDU (Robert B Carroll) writes: >In article <11108@bloom-beacon.MIT.EDU> jik@athena.mit.edu (Jonathan I. Kamens) writes: >> >>It it safe to assume when writing a program which manipulates >>directories that . and .. will always be the first two entries in a >>directory? > >NO, its not save to assume that. >try "touch #abcd" then 'list' the directory. > Yes, 'ls' shows #abcd before '.' and '..' . *BUT* if you read the directory in a C program, it still shows that #abcd is sitting behind '.' and '..' . *********************************************************************** * USMAIL: Guangliang He * INTERNET: ghe@PHYSICS.ORST.EDU Department of Physics * ghe@jacobs.CS.ORST.EDU Oregon State University * BITNET: hegl@orstvm.bitnet Corvallis, OR 97331 * PHONE: (503) 754-4631 * ***********************************************************************