Dot files always first in directory?

Guangliang He ghe at nucthy.physics.orst.edu
Sat May 6 02:27:02 AEST 1989


In article <3540 at udccvax1.acs.udel.EDU> conan at vax1.acs.udel.EDU (Robert B Carroll) writes:
>In article <11108 at bloom-beacon.MIT.EDU> jik at 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 at PHYSICS.ORST.EDU
          Department of Physics    *            ghe at jacobs.CS.ORST.EDU
          Oregon State University  *  BITNET:   hegl at orstvm.bitnet
          Corvallis, OR 97331      *  PHONE:    (503) 754-4631
                                   *
***********************************************************************



More information about the Comp.unix.wizards mailing list