]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
add a comment
authorJim Meyering <jim@meyering.net>
Thu, 10 Aug 2006 08:25:03 +0000 (08:25 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 10 Aug 2006 08:25:03 +0000 (08:25 +0000)
tests/ls/stat-dtype

index ac4bc400b5bc8af9b8ed20323beb2f1e01af818f..e94c2eb3183fff303ef78a31d8a528b4cd36582a 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 # Ensure that ls --file-type does not call stat unnecessarily.
+# The trick is to create an un-stat'able symlink and to see if ls
+# can report its type nonetheless, using dirent.d_type.
 
 if test "$VERBOSE" = yes; then
   set -x