Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cp: should print verbose message after interactive prompt #7285

Closed
jfinkels opened this issue Feb 8, 2025 · 2 comments · Fixed by #7287
Closed

cp: should print verbose message after interactive prompt #7285

jfinkels opened this issue Feb 8, 2025 · 2 comments · Fixed by #7287
Labels

Comments

@jfinkels
Copy link
Collaborator

jfinkels commented Feb 8, 2025

Environment: Ubuntu 24.04, uutils main branch (git commit 2afab7c), GNU coreutils v9.6.16-3f7c3-modified.

Steps to reproduce:

touch -d yesterday old
touch new
cp -v -i --update=older new old

What happens now: uutils cp prints 'new' -> 'old' before the interactive prompt:

'new' -> 'old'
cp: overwrite 'old'? y

What I expected to happen: GNU cp prints the verbose message only after the user confirms the operation in the interactive prompt:

cp: overwrite 'old'? y
'new' -> 'old'

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

@aimerlief
Copy link
Contributor

Hello, I'd like to work on this issue. May I proceed?

@sylvestre
Copy link
Contributor

sylvestre commented Feb 8, 2025

Sure :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants