Skip to content

rm: bug with trailing backslash on windows  #3200

@amrbashir

Description

@amrbashir

I have a bad habit of providing options at the end of the command:

rm .\some-directory\ -rf

and since I use Tab to autocomplete the path in powershell, it will add trailing backslash, and will interpret the -rf as part of the path.

rm: cannot remove '.\some-directory\ -rf': No such file or directory

It works fine if I removed the trailing backslash.

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