This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: changing directory
OK this works, thanks a lot for prompt&correct answer. great.
About system: Every call of system lets guile start a new shell, and
it is in this new shell where the command given as parameter to the
system-call will be executed. After execution of the shell-command in
the new shell, the shell is thrown away.
please fell free to correct if wrong.
o
email: oliver.buechel@unifr.ch
>>>>> "Mikael" == Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
Mikael> Olivier Buechel <Olivier.Buechel@unifr.ch> writes:
>> This may be more scheme than guile; When i do a systemcall
>> (system "wget www.xy.zz") the file wget will download will be
>> saved in the current shell directory i.e. (system "pwd"). How
>> can i change my current directory?
Mikael> (chdir "xxx")
>> I tried (system "cd /home/buechel/download") but this has not
>> changed. What does it do then?
Mikael> It changes the directory in the subshell which Guile has
Mikael> started.