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 QAA27225; Mon, 14 Oct 2002 16:08:10 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 QAA27004 for ; Mon, 14 Oct 2002 16:08:09 +0200 (MET DST) Received: from lobus.fungible.com (adsl-64-161-114-6.dsl.snfc21.pacbell.net [64.161.114.6]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9EE87514254 for ; Mon, 14 Oct 2002 16:08:08 +0200 (MET DST) Received: by lobus.fungible.com (Postfix, from userid 1000) id 2F0E980DE; Mon, 14 Oct 2002 07:08:06 -0700 (PDT) Date: Mon, 14 Oct 2002 07:05:57 -0700 From-Tims-Fingers: true To: garrigue@kurims.kyoto-u.ac.jp Cc: checker@d6.com, caml-list@inria.fr In-reply-to: <20021014184615Q.garrigue@kurims.kyoto-u.ac.jp> (message from Jacques Garrigue on Mon, 14 Oct 2002 18:46:15 +0900) Subject: Re: [Caml-list] Runtime overflow and what to do References: <200210121613.MAA27433@psi-phi.mit.edu> <20021013112815.K13771@pauillac.inria.fr> <4.3.2.7.2.20021013175437.032eb130@mail.d6.com> <20021014184615Q.garrigue@kurims.kyoto-u.ac.jp> Message-Id: <20021014140806.2F0E980DE@lobus.fungible.com> From: tim@fungible.com (Tim Freeman) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Jacques Garrigue >The above can be reduced to one line, without temporary file. >In fact, I feel more like we would need a "-silent" option, to get rid >of prompts and types (this is already the default with scripts). > >echo "print_int Sys.word_size;;" | \ >ocaml | grep "^# ." | sed -e "s/# //" -e "s/- :.*//" The following is simpler and works on Unix systems that have /dev/fd: echo "print_int Sys.word_size;;" | ocaml /dev/fd/0 I agree that a "-silent" option would be prettier than this, and it would work on systems that don't have /dev/fd. -- Tim Freeman tim@fungible.com GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D 7180 76DF FE00 34B1 5C78 ------------------- 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