[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
`cp: warning: behavior of -n is non-portable and may change in future; u
From: |
Σταύρος Ντέντος |
Subject: |
`cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead` |
Date: |
Tue, 10 Jun 2025 10:56:50 +0300 |
Hello there,
I was wondering: Should the error message contain `-n/--no-clobber`
and/or use the same flag as the one used in the invocation?
Rationale: I try to write my dotfiles without shorthands - for future
readability.
So, "after a distro upgrade (Ubuntu 24.04)", it was so weird to me to
read that "`-n` is deprecated".
I assumed it was because of the shorthand was used - but I haven't
used it. Because of the aliases, my `cp` is plain `cp [-r] a b`. So no
`-n` on the terminal,
Remembering that I am using an alias:
```
$ command -v cp
alias cp='cp --no-clobber --preserve=links --preserve=timestamps'
```
Which again felt weird - because I am not using `-n` at all.
I thought that *precisely* the shorthand was the one that was
"non-portable" (for some out-of-my-understanding shorthand-flag
reason).
Version: `GNU coreutils 9.4, April 2024`
With regards,
Ntentos Stavros
- `cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead`,
Σταύρος Ντέντος <=