From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 234A1BC0A for ; Thu, 21 Dec 2006 04:41:27 +0100 (CET) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id kBL3fQeP011733 for ; Thu, 21 Dec 2006 04:41:26 +0100 Received: by ug-out-1314.google.com with SMTP id k3so2190361ugf for ; Wed, 20 Dec 2006 19:41:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ezjQraJGV5Zuw9sA+8OABNfqWbUvsk6cjALDngfBKuui93x70VAcBpwdEYRKCkTTkOXIyKvNvoDzdhiqnoVsIsLpGM5apepG/quhsXaw1+hPoMNKaKt3zF8zT/jVz3eRCQzYiTPc3DhB9Gh3YkrCzGzSeHXSBSa05w5ev7e2IWs= Received: by 10.78.180.16 with SMTP id c16mr668550huf.1166672485921; Wed, 20 Dec 2006 19:41:25 -0800 (PST) Received: by 10.78.100.6 with HTTP; Wed, 20 Dec 2006 19:41:20 -0800 (PST) Message-ID: <6dbd4d000612201941wcd4b09anc503a13889576512@mail.gmail.com> Date: Wed, 20 Dec 2006 22:41:20 -0500 From: "Denis Bueno" To: "OCaml Mailing List" Subject: Scripting in ocaml MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-j-chkmail-Score: MSGID : 458A0266.000 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 458A0266.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 camlp:01 syntax:01 foo:01 foo:01 scsh:01 variables:02 interaction:02 seems:03 i'd:05 implement:06 variable:06 probably:07 bash:08 I've been writing bash scripts to perform various build- and development-related tasks, and I don't enjoy it. I won't bore you with detailed reasons why. The upshot is that I'd like to script in OCaml. I have considered writing a few camlp4 extensions to make it easier to write scripts: 1) create a syntax which grabs environment variables: e.g. $FOO would grab the value of the environment variable FOO 2) some sort of more convenient process interaction, e.g., for piping. (1) seems pretty straightforward, though I haven't found the time to implement it yet. (2) is not as clear to me, but I'll think about it and probably look at scsh. I googled a bit but couldn't find anything related to this. Has anything done, or started doing, anything like this? -Denis