Skip to content

mv/i-5.sh: interactive question isn't prompted #3337

@sylvestre

Description

@sylvestre
mkdir a
touch b

echo n|./target/debug/coreutils mv -i a b
mv: cannot overwrite non-directory 'b' with directory 'a'

I guess the interactive question isn't asked as the right time.

The error is triggered here:
https://github.com/uutils/coreutils/blob/main/src/uu/mv/src/mv.rs#L261=

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions