From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA11636; Thu, 23 May 2002 22:45:47 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA11712 for caml-list@pauillac.inria.fr; Thu, 23 May 2002 22:45:46 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA15914 for ; Tue, 21 May 2002 14:33:53 +0200 (MET DST) Received: from ws4-1.us4.outblaze.com (205-158-62-42.outblaze.com [205.158.62.42]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id g4LCXoX00268 for ; Tue, 21 May 2002 14:33:51 +0200 (MET DST) Received: (qmail 24418 invoked by uid 1001); 21 May 2002 12:33:49 -0000 Message-ID: <20020521123349.24417.qmail@operamail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [213.67.81.234] by ws4-1.us4.outblaze.com with http for jenso@operamail.com; Tue, 21 May 2002 13:33:49 +0100 From: "Jens Olsson" To: caml-list@inria.fr Date: Tue, 21 May 2002 13:33:49 +0100 Subject: [Caml-list] Curious about Unix.readdir and ls X-Originating-Ip: 213.67.81.234 X-Originating-Server: ws4-1.us4.outblaze.com Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I was wondering.... when doing Unix.readdir on an Emacs backup file (like #myfile#), I only get the name #myfile (without ending #). First I thought that was a problem related to the readdir function but obviously it is a little deeper than that: When doing 'ls .' on the directory containing the above example file ls seems to have the same problem (at least on my system). The file is printed in flashing red and without the ending #. Or is this as it should? How do I know that? BUT, if I let the shell expand a wildcard, it does so correctly: 'ls *' returns a line containing #myfile# and my ocaml program doing readdir gets a correct filename (of course). So, what is happening? Anyone who wants to enlighten me? :) Jens Olsson -- _______________________________________________ Download the free Opera browser at http://www.opera.com/ Powered by Outblaze ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners