Ticket #44060

Enhance REN or add separate RENDIR command

Eröffnet am: 2022-03-09 04:40 Letztes Update: 2022-03-13 22:56

Auswertung:
Verantwortlicher:
Status:
Geschlossen
Komponente:
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
Keine

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-Verlauf (3/8 Historien)

2022-03-09 04:40 Aktualisiert von: bttr
  • New Ticket "Enhance REN or add separate RENDIR command" created
2022-03-09 06:27 Aktualisiert von: mateuszviste
Kommentar

should work since revision 1057

2022-03-12 03:48 Aktualisiert von: bttr
Kommentar

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 Aktualisiert von: bttr)
2022-03-12 19:01 Aktualisiert von: mateuszviste
Kommentar

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 Aktualisiert von: bttr
Kommentar

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 Aktualisiert von: mateuszviste
Kommentar

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 Aktualisiert von: bttr
Kommentar

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 Aktualisiert von: bttr
  • Status Update from Offen to Geschlossen
  • Lösung Update from Keine to Gefixt
Kommentar

Enhancement became part of SvarCOM version 2022.3.

Dateianhangliste

Keine Anhänge

Bearbeiten

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