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

[REBOL] Re: Console current path

From: carl:cybercraft at: 18-Dec-2001 9:20

On 18-Dec-01, John R wrote:
> Hi all, > 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" >>>
I've heard the reason, (from RT), but forgotten it. But if it happens, change your 'do path to a full path and your program will run again without you having to close the console down and start again. (No doubt someone could write you/us a reset-path function we could add to our REBOL startups?)
> John
-- Carl Read