From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,96296bb60aa5db9 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Ada.Directories Date: Sun, 21 Oct 2007 17:38:09 +0200 Organization: Jacob's private Usenet server Message-ID: References: <1o4hp0vtlenw0.jql7yewhhr4a.dlg@40tude.net> <1192912525.922514.185180@q3g2000prf.googlegroups.com> <411h1vmet9dh$.uij5asq361ds$.dlg@40tude.net> NNTP-Posting-Host: taasingegade.news.jacob-sparre.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: jacob-sparre.dk 1192981089 2696 85.82.239.166 (21 Oct 2007 15:38:09 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sun, 21 Oct 2007 15:38:09 +0000 (UTC) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:nkY/o7MD/En1fDSXZwBqe/ePUS4= Xref: g2news2.google.com comp.lang.ada:2522 Date: 2007-10-21T17:38:09+02:00 List-Id: Dmitry A. Kazakov wrote: > On Sun, 21 Oct 2007 15:05:57 +0200, Jacob Sparre Andersen wrote: >> Dmitry A. Kazakov wrote: >>> "." is not a hard/soft link, >> >> On a Unix system it _is_ a hard link. > > AFAIK, no, because you cannot unlink it: Unfortunately what you know isn't quite right. > $ mkdir Test > $ ls -CFa Test > ./ ../ If you had used the command "ls -la" at this point, you would have seen something like this: total 12 drwxr-xr-x 2 sparre sparre 4096 Oct 21 17:32 . drwxrwxrwt 12 root root 8192 Oct 21 17:34 .. The important part here is the "2" in the second line. It's the "link count" for the file ".". As you can see, there are two links to ".". The one is "Test" in the parent directory, and the other is ".". Greetings, Jacob -- "If you think Tuck has said something that is completely wrong, you are almost certainly missing something :-)"