Skip to content

mv: -i shouldn't show error message if overwriting is declined #4724

@cakebaker

Description

@cakebaker

Setup:

$ mkdir example
$ touch a
$ cp a example/

With GNU mv:

$ mv a example/ -i
mv: overwrite 'example/a'? n
$ echo $?
1

With uutils mv:

$ cargo run mv a example/ -i
mv: overwrite 'example/a'? n
mv: cannot move 'a' to 'example/a': 
$ echo $?
1

It works fine if I specify the filename:

$ cargo run mv a example/a -i
mv: overwrite 'example/a'? n
$ echo $?
1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions