This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
stat:type in 1.3.4?
- To: guile at sourceware dot cygnus dot com
- Subject: stat:type in 1.3.4?
- From: "Peter C. Norton" <spacey at lenin dot nu>
- Date: Sat, 26 Aug 2000 14:13:52 -0700
I'm doing the following:
[spacey@twoflower perlfunc]$ ln -s / slashlink
[spacey@twoflower perlfunc]$ ls -laF
total 32
-rw-rw-r-- 1 spacey spacey 5813 Aug 26 17:08 -X.scm
drwxrwxr-x 2 spacey spacey 4096 Aug 26 17:12 ./
drwxrwxr-x 3 spacey spacey 4096 Aug 25 02:59 ../
lrwxrwxrwx 1 spacey spacey 1 Aug 26 17:12 slashlink -> //
and then in guile 1.3.4:
guile> (define tlstat-vec (stat "./slashlink"))
guile> (stat:type tlstat-vec)
directory
guile>
This seems to be contrary to how stat(2) works.
The changelog for 1.3.4 says:
1999-08-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
* acinclude.m4: Updated. (Thanks to Karl Eichwalder.)
* configure.in: Test for presence of S_ISLNK in sys/stat.h.
(Thanks to Bernard Urban.)
Test for memmove and bcopy. (Thanks to
suzukis@file.phys.tohoku.ac.jp.)
* acconfig.h: Added HAVE_S_ISLNK.
But stat:type doesn't seem to use S_ISLINK?
--
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.