* [Caml-list] module sys @ 2002-12-08 13:42 onlyclimb 2002-12-08 13:22 ` Stefano Zacchiroli 0 siblings, 1 reply; 2+ messages in thread From: onlyclimb @ 2002-12-08 13:42 UTC (permalink / raw) To: caml-list Dear Ocaml list under the toplevel why i can not use # Sys.command "cd /" ;; to change the dir to the "/" only have to use Sys.chdir ? ------------------- 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] module sys 2002-12-08 13:42 [Caml-list] module sys onlyclimb @ 2002-12-08 13:22 ` Stefano Zacchiroli 0 siblings, 0 replies; 2+ messages in thread From: Stefano Zacchiroli @ 2002-12-08 13:22 UTC (permalink / raw) To: caml-list 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 process. Cheers. -- Stefano Zacchiroli - Undergraduate Student of CS @ Uni. Bologna, Italy zack@{cs.unibo.it,debian.org,bononia.it} - http://www.bononia.it/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 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-08 13:23 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2002-12-08 13:42 [Caml-list] module sys onlyclimb 2002-12-08 13:22 ` Stefano Zacchiroli
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox