Ticket #44060

Enhance REN or add separate RENDIR command

Open Date: 2022-03-09 04:40 Last Update: 2022-03-13 22:56

Reporter:
Owner:
Status:
Closed
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

This would allow to rename directories w/o using an external MOVE command.

Int21.56 'RENAME FILE' allows renaming directories since DOS 3.0.

So it's more a matter of a clever syntax to allow this with REN w/o breaking MS-DOS compatibility.

Ticket History (3/8 Histories)

2022-03-09 04:40 Updated by: bttr
  • New Ticket "Enhance REN or add separate RENDIR command" created
2022-03-09 06:27 Updated by: mateuszviste
Comment

should work since revision 1057

2022-03-12 03:48 Updated by: bttr
Comment

Reply To mateuszviste

should work since revision 1057

It works. Even using wildcards for directory names.

But...

There's an issue:

  1. Given is a directory with sub-dirs '12' and '34'.
  2. ren ?? *.dir displays:
    . -> .DIR  File not found
    .. -> .DIR  File not found
    

Expected behavior: REN should be silent by always just skipping '.' and '..'.

(Good: Sub-dirs '12' and '34' are correctly renamed to '12.dir' and '34.dir'. :-) )

(Edited, 2022-03-12 03:51 Updated by: bttr)
2022-03-12 19:01 Updated by: mateuszviste
Comment

I'm not sure about what should be the correct way here.

If "ren ?? xxx" skips directories, then "ren .. xxx" should, too. "." and ".." are directories like any other, so I think "??" matching them is the expected behavior. Apparently MSDOS also outputs an error (although different) in such situation.

2022-03-12 19:39 Updated by: bttr
Comment

Umm... I see. We have no pressure, because current behavior doesn't cause any harm. It's documented here in this ticket and that's it for now.

Same for the 'File not found' error message, which should be 'Directory not found' or 'Path not found' to be correct for '.' or '..'.

2022-03-12 19:50 Updated by: mateuszviste
Comment

Reply To bttr

Same for the 'File not found' error message, which should be 'Directory not found' or 'Path not found' to be correct for '.' or '..'.

Maybe, but this is unrelated to REN, such messages come from the kernel.

2022-03-12 20:12 Updated by: bttr
Comment

Reply To mateuszviste

Reply To bttr

Same for the 'File not found' error message, which should be 'Directory not found' or 'Path not found' to be correct for '.' or '..'.

Maybe, but this is unrelated to REN, such messages come from the kernel.

I know.

2022-03-13 22:56 Updated by: bttr
  • Status Update from Open to Closed
  • Resolution Update from None to Fixed
Comment

Enhancement became part of SvarCOM version 2022.3.

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login