Opened 12 years ago

Last modified 3 years ago

#16 accepted enhancement

MOVE command is not compatible and needs improvement

Reported by: D Azarewicz Owned by: Gregg Young
Priority: major Milestone: Version-3.10
Component: Commands Version: 3.08
Keywords: Cc: david@…

Description

The MOVE command is not compatible with the MOVE command in CMD.EXE.

  move \dir1\dir2\dir3 \dir4

should move dir3 to \dir4\dir3 but it does not. It moves files instead of moving the directory.

Also the MOVE command should fail if any arguments are missing.

Change History (4)

comment:1 Changed 11 years ago by Steven Levine

Milestone: Version-3.09
Owner: changed from somebody to Steven Levine
Status: newassigned

As I read the command reference the ability of cmd.exe to move directories is an undocumented feature. That said, it might be useful to modify the move command to work like cmd.exe if it can be done without breaking too many existing scripts.

You can use the 4OS2 rename command to move directories. For example

  ren \dir1\dir2\dir3 \dir4

Will do what you want.

It should be possible to define an alias that maps the move to a rename if there are only two arguments and the first argument is a directory.

The existing 4OS2 move command only requires one argument.

comment:2 Changed 5 years ago by Steven Levine

Milestone: Version-3.09Version-3.10

Ticket retargeted after milestone closed

comment:3 Changed 3 years ago by Gregg Young

Do an INI entry; Same problem as ticket 30.

comment:4 Changed 3 years ago by Gregg Young

Owner: changed from Steven Levine to Gregg Young
Status: assignedaccepted
Note: See TracTickets for help on using tickets.