Skip to content

mv: fails if source dir name is subset of target dir name #5481

@cakebaker

Description

@cakebaker

This issue was mentioned by @allaboutevemirolive in #4833 (comment):

$ mkdir test test2
$ cargo run mv test test2
mv: cannot move 'test' to a subdirectory of itself, 'test2/test'

Using different directory names, the same steps work fine:

$ mkdir aa bb
$ cargo run mv aa bb
$ ls bb
aa

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions