close

June 2024 promo! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

cp: warning: behavior of -n is non-portable and may change in future

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #24958 Reply
    Catherine
    Guest

    seeing this on new installs

    cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead

    #24960 Reply
    Juan
    Guest

    I think -n is for GNU, since cp was ported from POSIX. But pretty sure Ubuntu and Debian have supported that flag for many years already?

    #24961 Reply
    Judith
    Guest

    According to mailing lists,

    https://www.mail-archive.com/[email protected]/msg33577.html

    The new --update=none doesn’t even work correctly and is overwriting files so I don’t think it’s a good idea to use that flag either!

    #24962 Reply
    Gregory
    Guest

    weird, as cp has been around forever…

    #24963 Reply
    Juan
    Guest

    Some of the Debian maintainers discussed this on Reddit a few months ago. They are saying it seems to be a bug and should be fixed in future versions. I don’t know how such a verbose warning message could be a bug, but if I understand correctly that’s what they are saying:

    Warning on cp when upgrading
    byu/AdbekunkusMX indebian

    #24964 Reply
    Jacqueline
    Guest

    Some of the Debian maintainers discussed this on Reddit a few months ago. They are saying it seems to be a bug and should be fixed in future versions.

    On second reading, I’m not sure they are saying it’s a bug.

    But maybe just that apt using cp -n is a bug. It’s not really clear.

    #25079 Reply
    Frank
    Guest

    what are they asking for? cp --update=none instead of cp -n is that?

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: cp: warning: behavior of -n is non-portable and may change in future

Thanks to our generous sponsors for their support!