From: Zheng Li <zheng_li@users.sourceforge.net>
To: caml-list@inria.fr
Subject: Re: [ANN] camlish: a simple module for shell scripting in OCaml
Date: Mon, 27 Oct 2008 15:10:55 +0100 [thread overview]
Message-ID: <4905CBEF.1080708@users.sourceforge.net> (raw)
In-Reply-To: <caee5ad80810270611t263cdbadt734feebfc72c2076@mail.gmail.com>
Mikkel Fahnøe Jørgensen wrote:
> Great!, but bummer, I wrote one too last night....
>
> http://git.dvide.com/pub/ocaml-shell-utils/tree/
> http://git.dvide.com/pub/ocaml-shell-utils/plain/README.txt
>
> Also looked at FileUtils and ShCaml, but wanted something light.
>
> Anyway - it seems orthogonal to mine.
>
> I don't do any pipeline processing, I just make it easy to cp, mv,
> etc. using ocaml toplevel scripts as an alternative to install
> scripts.
I just had a visit to your project, and yes, I agree they are mostly
orthogonal. Camlish only concentrates on the interaction, redirection,
composition and coordination of _external_ commands, pushing/pulling the
input/output as OCaml values. It doesn't, and probably won't, define
functions as common shell commands by itself, which, I believe, are
better left to other libraries.
As a compensation, camlish allows one to execute shell commands directly
from toplevel, if (s)he doesn't care about the interaction with OCaml
world. So instead of writing
# !! cmd "ls -l";;
which is plain OCaml function calling outside command "ls", one can
simply write
# ls -l ;;
which is a shell command, not a function named "ls". I myself am
interested in using OCaml toplevel as a shell environment.
Still, it's very nice to see others confronting similar problems and
trying to solve them in different approaches.
--
Zheng
next prev parent reply other threads:[~2008-10-27 14:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-27 3:30 Zheng Li
2008-10-27 8:51 ` Sylvain Le Gall
2008-10-27 10:09 ` Zheng Li
2008-10-27 13:11 ` [Caml-list] " Mikkel Fahnøe Jørgensen
2008-10-27 13:15 ` Andre Nathan
2008-10-27 13:18 ` Sylvain Le Gall
2008-10-27 13:21 ` [Caml-list] " Andre Nathan
2008-10-27 13:33 ` Sylvain Le Gall
2008-10-27 13:43 ` [Caml-list] " Mikkel Fahnøe Jørgensen
2008-10-27 14:10 ` Zheng Li [this message]
2008-10-27 14:02 ` Mikkel Fahnøe Jørgensen
2008-10-27 14:35 ` Zheng Li
[not found] ` <caee5ad80810270745h352a35bye70f9cc045ad441a@mail.gmail.com>
2008-10-27 15:45 ` Zheng Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4905CBEF.1080708@users.sourceforge.net \
--to=zheng_li@users.sourceforge.net \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox