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

Update the usage of cp command depending on coreutils version #436

Open
f-alizada opened this issue Feb 6, 2024 · 3 comments
Open

Update the usage of cp command depending on coreutils version #436

f-alizada opened this issue Feb 6, 2024 · 3 comments
Labels
good first issue Good for newcomers

Comments

@f-alizada
Copy link
Contributor

Recently there were changes in coreutils package which contains the cp command.
starting from 9.4-3 when using cp -n it results warning output: 'behavior of -n is non-portable and may change in future; use --update=none instead'

For more details:

In order to remove the warning the cp command usage should be updated depending on the version of the cp command installed (coreutils package)

@kasperk81
Copy link
Contributor

cp -n isn't used in this repo?

@f-alizada
Copy link
Contributor Author

@kasperk81 it is used here:

cp -R $override_switch "$root_path/$path" "$target"

@YuliiaKovalova YuliiaKovalova added the good first issue Good for newcomers label Apr 16, 2024
@jessuppi
Copy link

Just fyi we had a discussion on our forum about this:

https://slickstack.io/forum/topic/cp-warning-behavior-of-n-is-non-portable-and-may-change-in-future

--update=none is also having issues, and it might not be a good idea to use it (yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants