Skip to content

cp: -i --update=none prompts but shouldn't #7660

@jfinkels

Description

@jfinkels

Environment: Ubuntu 24.04, uutils main branch (git commit 3971bb3), GNU coreutils v9.6.38-2b088-modified

Steps to reproduce:

echo f > f
echo g > g
cp -i --update=none f g

What happens now: uutils cp prompts the user with

cp: overwrite 'g'?

even though the file is not copied regardless of the answer.

What I expected to happen: GNU cp does not print any prompt and no changes are made to the files.

Notes: this is causing a failure in GNU test file tests/cp/cp-i.sh.

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