@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.
Bug in CurrentDir() or possibly GetCurrentDirName() ?
Re: Bug in CurrentDir() or possibly GetCurrentDirName() ?
AmigaOne X1000 with 2GB memory - OS4.1 FE
Re: Bug in CurrentDir() or possibly GetCurrentDirName() ?
Thanks for your explanation!thomasrapp wrote:The CD command sets it and the prompt %s placeholder reads it. It's not used anywhere else.
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?)