From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA10907; Sun, 8 Dec 2002 14:23:17 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA10988 for ; Sun, 8 Dec 2002 14:23:16 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from smtp1.cp.tin.it (vsmtp1.tin.it [212.216.176.221]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gB8DNFX12294 for ; Sun, 8 Dec 2002 14:23:15 +0100 (MET) Received: from dalamar.takhisis.org (80.117.63.186) by smtp1.cp.tin.it (6.5.029) id 3DEDBCA0001A7122 for caml-list@inria.fr; Sun, 8 Dec 2002 14:23:14 +0100 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by dalamar.takhisis.org (Postfix) with ESMTP id 1961ABD50 for ; Sun, 8 Dec 2002 14:23:14 +0100 (CET) Received: by lordsoth.takhisis.org (Postfix, from userid 3148) id 77E58706A; Sun, 8 Dec 2002 14:22:48 +0100 (CET) Date: Sun, 8 Dec 2002 14:22:48 +0100 From: Stefano Zacchiroli To: caml-list@inria.fr Subject: Re: [Caml-list] module sys Message-ID: <20021208132248.GA8655@lordsoth.takhisis.org> Mail-Followup-To: caml-list@inria.fr References: <3DF34C5F.5000302@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DF34C5F.5000302@163.com> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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