Opened 3 years ago

Last modified 3 years ago

#73 new defect

MOVE command creates a new directory without trailing backslash in destination

Reported by: Lewis Rosenthal Owned by:
Priority: major Milestone: Version-3.10
Component: Commands Version: 3.10
Keywords: Cc:

Description

MOVE should be able to relocate a source file to a new location, optionally with a new name. To indicate a new name, the destination should not end with a trailing backslash. So:

[c:\] move h:\test\svn-list.txt j:\svn-listing.txt

should result in:

j:\svn-listing.txt

existing as a file with the same content as the original svn-list.txt.

Actual result:

j:\svn-listing.txt\svn-list.txt

This is the same result as appending a backslash to the new name.

This is new with 3.10-GKY.

Change History (2)

comment:1 by Steven Levine, 3 years ago

I can replicate this here. For example:

[d:\tmp]move /p test.tmp d:\testnew.tmp
D:\TMP\test.tmp -> D:\testnew.tmp\test.tmp (Y/N/R)?

There is additional bustage. For now, be careful. If you Esc out of the command, it sorta, but not quite, acts, as if /S was provided and it tends to create subdirectories at the destination.

comment:2 by Lewis Rosenthal, 3 years ago

This seems to have been fixed in:

4OS2 3.11.2-shl OS/2 Version is 4.50
Build 3.11.2-shl.168 (May 5 2022 16:52:30)

I haven't thoroughly tested, however.

Note: See TracTickets for help on using tickets.