Browse thread
[Caml-list] Filename.quote - again
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 |
What I meant is actually:
#!/bin/sh
# (*
exec myscript a b c ....
*)
caml code...
Christopher Quinn wrote:
> 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