Version française
Home     About     Download     Resources     Contact us    
Browse thread
[ANN] camlish: a simple module for shell scripting in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Zheng Li <zheng_li@u...>
Subject: Re: [ANN] camlish: a simple module for shell scripting in OCaml
Hi,

Sylvain Le Gall wrote:
> On 27-10-2008, Zheng Li <zheng_li@users.sourceforge.net> 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