-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Docs
- GNU Coreutils / 11.1 cp: Copy files and directories
- GNU Coreutils / 2.6 Target directory
=================================================
Preapre src folder
run to preapre src folder
mkdir -p src/111/222/333
touch src/111/222/333/README.md
run
tree src
show
src
└── 111
└── 222
└── 333
└── README.md
4 directories, 1 file
On gnu coreutils
run to copy src folder to des folder
cp -rfTv src des
show
'src' -> 'des'
'src/111' -> 'des/111'
'src/111/222' -> 'des/111/222'
'src/111/222/333' -> 'des/111/222/333'
'src/111/222/333/README.md' -> 'des/111/222/333/README.md'
run
tree desshow
des
└── 111
└── 222
└── 333
└── README.md
4 directories, 1 file
Successfully copied the
src folderto thedes folder
The above
cp -rfTv src descan also be changed tocp -rfT src des
run to copy again
cp -rfTv src desshow
'src/111/222/333/README.md' -> 'des/111/222/333/README.md'
run to copy again
cp -rfTv src desshow
'src/111/222/333/README.md' -> 'des/111/222/333/README.md'
run
tree desshow
des
└── 111
└── 222
└── 333
└── README.md
4 directories, 1 file
Successfully copied the
src folderto thedes folder
=================================================
On uutils coreutils / from Xubuntu 25.10 beta
run
cp --versionshow
cp (uutils coreutils) 0.1.0
remove des folder first
rm -rf desrun to copy src folder to des folder
cp -rfTv src des
show
cp: prefix not found
No copy of
src foldertodes folder
=================================================
On uutils coreutils / from Xubuntu 25.04 / download from GitHub
run to download version 0.2.2
wget -c 'https://github.com/uutils/coreutils/releases/download/0.2.2/coreutils-0.2.2-x86_64-unknown-linux-gnu.tar.gz'run to extract
tar xf coreutils-0.2.2-x86_64-unknown-linux-gnu.tar.gzrun
tree coreutils-0.2.2-x86_64-unknown-linux-gnushow
coreutils-0.2.2-x86_64-unknown-linux-gnu
├── coreutils
├── LICENSE
├── README.md
└── README.package.md
1 directory, 4 files
run to copy src folder to des folder
./coreutils-0.2.2-x86_64-unknown-linux-gnu/coreutils cp -rfTv src desshow
cp: prefix not found
No copy of
src foldertodes folder
=================================================
Issue Description
The result of cp -rfT executed in uutils coreutils is different from the result in GNU Coreutils.