caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] execvp broken ??
@ 2002-01-15  4:10 Ian Zimmerman
  2002-01-15  4:19 ` Ian Zimmerman
  2002-01-15  4:25 ` Doug Bagley
  0 siblings, 2 replies; 3+ messages in thread
From: Ian Zimmerman @ 2002-01-15  4:10 UTC (permalink / raw)
  To: OCAML


kronstadt:/usr/local/src/ocaml/ocaml-3.04/otherlibs/unix$ ocaml
        Objective Caml version 3.04

# load "unix.cma" ;;
Unbound value load
# #load "unix.cma" ;;
# open Unix ;;
# execvp "od" [| "-c" |] ;;
a^Eb
0000000 002541 005142
0000004
kronstadt:/usr/local/src/ocaml/ocaml-3.04/otherlibs/unix$ 

Obviously, the -c argument is not being passed.
WTH ?!?

-- 
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087
In his own soul a man bears the source
from which he draws all his sorrows and his joys.
Sophocles.
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] execvp broken ??
  2002-01-15  4:10 [Caml-list] execvp broken ?? Ian Zimmerman
@ 2002-01-15  4:19 ` Ian Zimmerman
  2002-01-15  4:25 ` Doug Bagley
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Zimmerman @ 2002-01-15  4:19 UTC (permalink / raw)
  To: OCAML


Thus wrote yours truly after too much time spent writing Perl:

itz> kronstadt:/usr/local/src/ocaml/ocaml-3.04/otherlibs/unix$ ocaml
itz>         Objective Caml version 3.04

itz> # load "unix.cma" ;;
itz> Unbound value load
itz> # #load "unix.cma" ;;
itz> # open Unix ;;
itz> # execvp "od" [| "-c" |] ;;
itz> a^Eb
itz> 0000000 002541 005142
itz> 0000004
itz> kronstadt:/usr/local/src/ocaml/ocaml-3.04/otherlibs/unix$ 

itz> Obviously, the -c argument is not being passed.
itz> WTH ?!?

Please ignore :-)

-- 
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087
In his own soul a man bears the source
from which he draws all his sorrows and his joys.
Sophocles.
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] execvp broken ??
  2002-01-15  4:10 [Caml-list] execvp broken ?? Ian Zimmerman
  2002-01-15  4:19 ` Ian Zimmerman
@ 2002-01-15  4:25 ` Doug Bagley
  1 sibling, 0 replies; 3+ messages in thread
From: Doug Bagley @ 2002-01-15  4:25 UTC (permalink / raw)
  To: Ian Zimmerman; +Cc: OCAML

Ian Zimmerman wrote:
> # #load "unix.cma" ;;
> # open Unix ;;
> # execvp "od" [| "-c" |] ;;

> # execvp "od" [| "od"; "-c" |] ;;
                   ^^^^
Don't you want this?

cheers,
doug
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-15  7:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-15  4:10 [Caml-list] execvp broken ?? Ian Zimmerman
2002-01-15  4:19 ` Ian Zimmerman
2002-01-15  4:25 ` Doug Bagley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).