On 18-Dec-01, [EMAIL PROTECTED] wrote: > On Mon, Dec 17, 2001 at 07:32:37PM -0000, 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" >>>> > That's a bug. Please submit it to feedback. 'do needs to switch > directories in order to run the script (scripts expect their own > directory to be current), but is supposed to switch back after the > script has completed. Apparently that does not happen if an error > occurs. Just checked what feedback told me about this. (I submitted it way back in May 2000)... "After running a script which exits with an error, the current directory becomes the one where the script was in. You can check this out with the WHAT-DIR command." I wasn't told then it was a bug so I've always assumed it's intended REBOL behaviour... -- Carl Read -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
