Enhance REN or add separate RENDIR command
should work since revision 1057
Reply To mateuszviste
should work since revision 1057
It works. Even using wildcards for directory names.
But...
There's an issue:
. -> .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'. :-) )
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.
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 '..'.
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.
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.
Enhancement became part of SvarCOM version 2022.3.
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.