English version
Accueil propos Tlchargement Ressources Contactez-nous

Ce site est rarement mis jour. Pour les informations les plus rcentes, rendez-vous sur le nouveau site OCaml l'adresse ocaml.org.

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: 2008-10-27 (13:43)
From: Mikkel_Fahnøe_Jørgensen <mikkel@d...>
Subject: Re: [Caml-list] [ANN] camlish: a simple module for shell scripting in OCaml
2008/10/27 Andre Nathan <andre@digirati.com.br>:
> On Mon, 2008-10-27 at 14:11 +0100, Mikkel Fahnøe Jørgensen wrote:
>> I'm currently adding a simple file globber.
> http://github.com/andrenth/ocaml-glob/

This is nice.

I wanted a simple ocaml based globber that can be embedded directly in
the shell_utils.ml source so there isn't any cross platform and
installation issues. But my globber only takes a single directory for
now and is probably not fast.

Users could install your globber and use it together with shell_utils.ml.

I need to think about the 'cp' interface a bit more.
Currently it takes a string. Should there be a variant taking a glob,
or an expanded list, or should cp take a single string of multiple
files that could originate from a glob?

Or should cp always take a glob pattern and have a way to plug in
other glob functions?