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=2.1 required=5.0 tests=AWL,DNS_FROM_SECURITYSAGE, SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id A4DFCBB84 for ; Mon, 27 Oct 2008 11:08:39 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlYDABswBUnAXQIngWdsb2JhbACTfwEBFiKsQYNP X-IronPort-AV: E=Sophos;i="4.33,491,1220220000"; d="scan'208";a="16532105" Received: from concorde.inria.fr ([192.93.2.39]) by mail2-smtp-roc.national.inria.fr with ESMTP; 27 Oct 2008 11:08:39 +0100 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m9RA8cev028742 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 27 Oct 2008 11:08:39 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvEAAOovBUlQW+UCe2dsb2JhbACTfwEBFiIErDyDTw X-IronPort-AV: E=Sophos;i="4.33,491,1220220000"; d="scan'208";a="30791054" Received: from main.gmane.org (HELO ciao.gmane.org) ([80.91.229.2]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 27 Oct 2008 11:08:38 +0100 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KuP1U-00065j-SI for caml-list@inria.fr; Mon, 27 Oct 2008 10:08:32 +0000 Received: from ivr94-8-88-162-26-239.fbx.proxad.net ([88.162.26.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Oct 2008 10:08:32 +0000 Received: from zheng_li by ivr94-8-88-162-26-239.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Oct 2008 10:08:32 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Zheng Li Subject: Re: [ANN] camlish: a simple module for shell scripting in OCaml Date: Mon, 27 Oct 2008 11:09:14 +0100 Message-ID: <4905934A.4000906@users.sourceforge.net> References: <490535D8.8020500@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ivr94-8-88-162-26-239.fbx.proxad.net User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: Sender: news X-Miltered: at concorde with ID 49059326.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 le-gall:01 lib:01 lib:01 sourceforge:01 sourceforge:01 wrote:01 wrote:01 unix:01 functions:01 functions:01 grep:01 modules:02 api:02 Hi, Sylvain Le Gall wrote: > On 27-10-2008, Zheng Li wrote: >> * It's also tempting to implement simple versions of common unix >> tools such as "ls" and "grep" as OCaml functions to achieve better >> composability. We opt not for the core module and not for now. >> > > You should take a look at > http://le-gall.net/sylvain+violaine/documentation/ocaml-fileutils/html/api/FileUtil.StrUtil.html > > Where you already have a basic implementation for ls, find, touch, rm, > cp, du, cmp... These are pure OCaml functions, that you can call directly > from OCaml (not external call). Thanks for the info. I remember I once saw a smaller lib with similar name for this purpose, maybe it was the same one but you upgraded it? That's the exact reason I'd leave camlish as small as possible and only concentrate on the glue layer. Your lib just gave this another vote. I'll add a reference to FileUtil in the README. Camlish users can just customize their working environments by importing various modules/functions in scope via their .camlishrc file. -- Zheng