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 OAA07183; Sat, 22 Feb 2003 14:36:15 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA07335 for ; Sat, 22 Feb 2003 14:36:14 +0100 (MET) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.185]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h1MDaDH00448 for ; Sat, 22 Feb 2003 14:36:13 +0100 (MET) Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 18mZp7-0006uv-00; Sat, 22 Feb 2003 14:36:13 +0100 Received: from [80.129.104.174] (helo=gate.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 18mZp7-0003jZ-00; Sat, 22 Feb 2003 14:36:13 +0100 Received: from ice.gerd-stolpmann.de (ice.gerd-stolpmann.de [192.168.0.13]) by gate.gerd-stolpmann.de (Postfix) with ESMTP id DB02E56C5; Sat, 22 Feb 2003 14:37:38 +0100 (CET) Received: by ice.gerd-stolpmann.de (Postfix, from userid 1000) id 77B51B059; Sat, 22 Feb 2003 14:36:30 +0100 (CET) Subject: Re: [Caml-list] pipe puzzle From: Gerd Stolpmann To: Issac Trotts Cc: OCaml List In-Reply-To: <3E570532.6050206@ucdavis.edu> References: <3E570532.6050206@ucdavis.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 22 Feb 2003 14:36:30 +0100 Message-Id: <1045920990.1063.1.camel@ice> Mime-Version: 1.0 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Am Sam, 2003-02-22 um 06.05 schrieb Issac Trotts: > POUS Damien wrote: > > >On Fri, 21 Feb 2003, Issac Trotts wrote: > > > > > > > >>I have an alias (called 'o' because I use it often) that does > >>the following: > >> (echo "let print s = print_string s; print_newline();;"; ledit) | ocaml > >>It works just fine except that when I suspend the process, and then > >>type > >> fg > >>it tells me > >> Signal 44 > >>and kills off my OCaml session. Can someone here shed some light > >>on this? > >> > >> > >ledit don't like suspends... the signal kill it, and > >then SIGPIPE is sent to Ocaml... > > > >man ledit says : > >KNOWN BUGS > > It is not possible to suspend ledit (using the suspend > > command, usually ctrl-z). > > > 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 -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------ ------------------- 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