Page 2 of 2

Re: Bug in CurrentDir() or possibly GetCurrentDirName() ?

Posted: Tue Sep 27, 2011 5:03 pm
by xenic
@thomasrapp
Your explanation should be added to the autodoc to avoid the kind of confusion experienced by ChrisH and myself. Even after rereading the GetCurrentDirName() autodoc and noting that it gets the name from the CLI structure, I still had the wrong impression about the name returned by the function.

Re: Bug in CurrentDir() or possibly GetCurrentDirName() ?

Posted: Tue Sep 27, 2011 5:54 pm
by ChrisH
thomasrapp wrote:The CD command sets it and the prompt %s placeholder reads it. It's not used anywhere else.
Thanks for your explanation!

Get/SetCurrentDirName() seems kinda pointless though - you'd think that CurrentDir() should automatically call SetCurrentDirName(), and that GetCurrentDirName() could then just be a simple wrapper for "NameFromLock(myProcess.pr_CurrentDir)"... (Perhaps I am missing something?)