Menu

#250 .File renameTo has Windows/Unix commands reversed

5.0.0
closed
Erich
None
1
2022-12-24
2017-07-17
No

In the ooRexx Reference, section 5.4.7.29. renameTo describes the underlying commands used to perform the action. The Windows and Unix commands listed are reversed. Should be: Windows -> rename, Unix -> movefile.

Discussion

  • Erich

    Erich - 2017-07-17
    • status: open --> wont-fix
    • assigned_to: Erich
     
  • Erich

    Erich - 2017-07-17

    There are some considerations how a file rename works on each OS. This is why rexxref gives the actual OS functions used, so you can look up the details, if required:

    MoveFile is the Windows API that is called to do the renaming.
    rename is the Unix API called to do the same.

     
  • Gil Barmwater

    Gil Barmwater - 2017-07-17

    Sorry, I misread what it was trying to tell me. I thought it was giving the "command", not the API.

     
  • LesK

    LesK - 2017-07-17

    If Gil can get confused, then I submit that some correction should be done. It might be as
    simple as saying "... the API ..."

     
  • Erich

    Erich - 2017-07-18
    • status: wont-fix --> pending
     
  • Erich

    Erich - 2017-07-18

    Submitted doc fix with revision [r11274]
    added ".. the .. API .."
    corrected SysFileMove() as available on both Windows and Unix instead of Windows-only

     

    Related

    Commit: [r11274]

  • Gil Barmwater

    Gil Barmwater - 2017-07-18

    I believe that the new wording is much clearer. Thanks!

     
  • Gil Barmwater

    Gil Barmwater - 2022-12-24
    • status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.