Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Console current path

From: al:bri:xtra at: 18-Dec-2001 9:24

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/