<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/12/69b1f12548226da9bb9d12ca90ba3a85"
  from="Stefano Zacchiroli &lt;zack@c...&gt;"
  author="Stefano Zacchiroli"
  date="2002-12-08T13:23:17"
  subject="Re: [Caml-list] module sys"
  prev="2002/12/8ea889634a390e77255fa06015627be4"
  next="2002/12/7cd480c277d9b2b807b680a8f79cc804"
  prev-in-thread="2002/12/741d6622f76dfbf10b3f157238472594"
  prev-thread="2002/12/2deaecb005361aa08c2faca67fcaa675"
  next-thread="2002/12/8adffc469fa2cf676c50c99f63e91cc6"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] module sys">
<msg 
  url="2002/12/741d6622f76dfbf10b3f157238472594"
  from="onlyclimb &lt;onlyclimb@1...&gt;"
  author="onlyclimb"
  date="2002-12-08T13:07:11"
  subject="[Caml-list] module sys">
<msg 
  url="2002/12/69b1f12548226da9bb9d12ca90ba3a85"
  from="Stefano Zacchiroli &lt;zack@c...&gt;"
  author="Stefano Zacchiroli"
  date="2002-12-08T13:23:17"
  subject="Re: [Caml-list] module sys">
</msg>
</msg>
</thread>

<contents>
On Sun, Dec 08, 2002 at 01:42:55PM +0000, onlyclimb wrote:
&gt; why i can not use
&gt; # Sys.command  "cd /" ;;
&gt; 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

</contents>

</message>

