On 2/21/22 10:49, Tomas wrote:
I found this, I am not sure whether it's the right specs.
https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/
Yes, or more precisely for 'cp':
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/cp.html
"2) f) The files in the directory
1
GNU Bug Tracking System
Contact help-debb...@gnu.org with problems
= Forwarded message =
Subject: Re: bug#47151: cp --recursive funky behaviour
From: "Paul Eggert"
Date: Mon, 21 Feb 2022 01:54:02 -0800
To: "Tomas"
C
On 3/14/21 17:47, Tomas wrote:
cd /tmp
mkdir src
touch src/a
cp -r src dest
#damn, I forgot a file
touch src/b
cp -r src dest
ls dest
# a dest
cp has behaved that way for ages, and is required to behave that way by
POSIX, so this is not a bug. To sidestep the issue, you can use the -T