[
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: | 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
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