-
Notifications
You must be signed in to change notification settings - Fork 2.1k
mv allows moving a directory into itself #2612
Copy link
Copy link
Closed
Labels
category:bugSomething isn't workingSomething isn't working
Description
Describe the bug
The mv command allows to move a directory into a subdirectory of itself. At least there is no error message but the end result is that the directory is gone (deleted)
To Reproduce
Steps to reproduce the behavior:
mkdir a
mkdir a/b
mv a a/b
Expected behavior
I would expect an error message of some kind, i.e. the standard linux mv command outputs
mv: cannot move 'a' to a subdirectory of itself, 'a/b/a'
Configuration (please complete the following information):
- OS: Tested on Windows
- Nu version: nushell 0.20.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category:bugSomething isn't workingSomething isn't working