English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] pipe puzzle
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-02-22 (23:29)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] pipe puzzle
Gerd Stolpmann wrote:

>Am Sam, 2003-02-22 um 06.05 schrieb Issac Trotts:
>>You're right.  Even ledit-1.11, which can handle suspend, cannot
>>handle (echo "let x=1;;"; ledit) | ocaml.  So now I simply use ledit ocaml
>>with ledit 1.11 and momentarily forget my wish to have a few commands
>>(not inside a module) that always run on startup.
>You can put these commands into .ocamlinit (see docs about the
>toplevel system).
Thanks for the hint.  In the source for the toplevel, it says

  if Sys.file_exists ".ocamlinit" then ignore(use_silently ppf ".ocamlinit")

It would be nice if it opened ~/.ocamlinit but it's no big deal because the
alias can just be

  alias o='cp ~/.ocamlinit .ocamlinit; ledit ocaml'

So, as usual, OCaml can do what I want.  


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