Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] module sys
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefano Zacchiroli <zack@c...>
Subject: Re: [Caml-list] module sys
On Sun, Dec 08, 2002 at 01:42:55PM +0000, onlyclimb wrote:
> why i can not use
> # Sys.command  "cd /" ;;
> to change the dir to the "/"

Because Sys.command is implemented on top of "system" C's stdlib
function which execute a new shell with "sh -c" and pass it the command
you want to be run.

Path changes in the shell process aren't reflected in the invoking


Stefano Zacchiroli  -  Undergraduate Student of CS @ Uni. Bologna, Italy
 zack@{,,} -
 "I know you believe you understood what you think I said, but I am not
 sure you realize that what you heard is not what I meant!" -- G.Romney
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: