John wrote: > Why does my console apparently change directory after an error occurs in program (halted etc.)? > > Console session example below show:-> > > >> do/args %myprogs/ftget.r "FTX1" > Program FTGet begin > ["FTX1"] > Invalid FTSE Index argument : FTX1 > >> do/args %myprogs/ftget.r "FT1" > ** Access Error: Cannot open /C/rebol/view/myprogs/myprogs/ftget.r > ** Where: halt-view > ** Near: do/args %myprogs/ftget.r "FT1" > >>
Rebol changes the current directory to %myprogs/ so that %ftget.r is running with the correct current directory. When the error occurs in %ftget.r, the current directory is still %myprogs/ so that's why the current directory seems to have changed for the console -- you're still in the context of %ftget.r, which is different from where you were before. I hope that helps! Andrew Martin ICQ: 26227169 http://valley.150m.com/ -><- -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
