On 4/1/24 10:31, enh via Toybox wrote:
> hadn't seen this one before...
> cp: warning: behavior of -n is non-portable and may change in future;
> use --update=none instead
> (consider me skeptical that a system without -n is going to have
> --update=none...)

Define non-portable? Freebsd 14 has -n, macos has -n, busybox cp has -n, and of
course toybox (and thus android) has -n.


$ ./busybox cp --update=none one two
cp: option '--update' doesn't allow an argument
root@freebsd:~ # cp --update=none one two
cp: illegal option -- -
root@freebsd:~ # cp --update=none one two
cp: illegal option -- -
$ toybox cp --update=none one two
cp: Unknown option 'update=none' (see "cp --help")

Those clowns are explicitly advocating for a LESS portable option.

This is why I'm not removing "egrep", which is a shell wrapper on my devuan
system by the way:

$ which egrep
$ cat /bin/egrep
exec grep -E "$@"

At least THAT one is easy for distributions to keep doing regardless of 

If the solution for cp -n isn't "distro patches out the stupid", then "install
busybox cp" or just "use alpine". Spurious warnings from gnu are just that:

Toybox mailing list

Reply via email to