Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Filename.quote - again
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christopher Quinn <cq@h...>
Subject: Re: [Caml-list] command arguments sticking together
Here's a trick I found amongst Gerd Stolpmann's goodies.

-------------------------
! /bin/sh
# (*
exec ocaml "$0" "$@"
*)
directory ".";; (* or some other directive *)

Array.iteri
   (fun i arg ->
     print_endline ("[" ^ string_of_int i ^
                    "] " ^ arg)
   )
   Sys.argv



-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners