Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

cp: --no-clobber --progress produces progress even if copy didn't happen because of target presence #6930

Open
victor-yarema opened this issue Dec 6, 2024 · 0 comments
Labels

Comments

@victor-yarema
Copy link

Tool: cp.
Version: commit c8bcdb926 (latest in main as of 2024-12-06).

STR:

  1. echo 'a' > a && cp --no-clobber --progress -v -T -- a b emits 1 line into stdout and 1 line into stderr as expected:
    1.a. 'a' -> 'b'
    1.b. cp: [00:00:00] █████████ 2 B/2 B
  2. Run cp --no-clobber --progress -v -T -- a b one more time.

Actual:

  1. This time tool emits nothing into stdout. It completely matches the expectation.
  2. It still emits progress into stderr like cp: [00:00:00] █████████ 2 B/2 B even though no copy happened.

Expected:

  1. Absolutely no output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants