Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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