caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Curious about Unix.readdir and ls
@ 2002-05-21 12:33 Jens Olsson
  2002-05-24  2:22 ` Blair Zajac
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Olsson @ 2002-05-21 12:33 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Curious about Unix.readdir and ls
  2002-05-21 12:33 [Caml-list] Curious about Unix.readdir and ls Jens Olsson
@ 2002-05-24  2:22 ` Blair Zajac
  2002-05-24  6:56   ` [Caml-list] Has anyone done anything about SOAP and O'Caml? Mattias Waldau
  0 siblings, 1 reply; 3+ messages in thread
From: Blair Zajac @ 2002-05-24  2:22 UTC (permalink / raw)
  To: Jens Olsson; +Cc: caml-list

Jens Olsson wrote:
> 
> 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

One of the problems sounds like ls showing additional information
about the file.

Use /bin/ls to see the real names of files in the directory with
any additional trailing characters.  This should be the name that
readdir finds.

Best,
Blair
-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Caml-list] Has anyone done anything about SOAP and O'Caml?
  2002-05-24  2:22 ` Blair Zajac
@ 2002-05-24  6:56   ` Mattias Waldau
  0 siblings, 0 replies; 3+ messages in thread
From: Mattias Waldau @ 2002-05-24  6:56 UTC (permalink / raw)
  To: caml-list

I wanted to play with the google-services http://www.google.com/apis/

/mattias waldau

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-24  6:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-21 12:33 [Caml-list] Curious about Unix.readdir and ls Jens Olsson
2002-05-24  2:22 ` Blair Zajac
2002-05-24  6:56   ` [Caml-list] Has anyone done anything about SOAP and O'Caml? Mattias Waldau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).