Browse thread
[Caml-list] pipe puzzle
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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). > >Gerd > 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. Issac ------------------- 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