coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

cp: --force is not implemented on Windows

Open jfinkels opened this issue 3 years ago • 3 comments

The --force option is not yet implemented on Windows.

$ cp --force src dest
cp: Option 'force' not yet implemented.

Originally posted by @sylvestre in https://github.com/uutils/coreutils/issues/3966#issuecomment-1254593732

jfinkels avatar Sep 22 '22 12:09 jfinkels

Is there a reason that this option specifically is not implemented on windows?

Max7cd avatar Mar 23 '23 16:03 Max7cd

probably not

sylvestre avatar Mar 23 '23 16:03 sylvestre

C:\coreutils-0.0.26-x86_64-pc-windows-msvc\coreutils-0.0.26-x86_64-pc-windows-msvc>coreutils cp -sf c:\d2\d.txt c:\data cp: Option 'force' not yet implemented.

meanwhile, the following command is already working :

C:\coreutils-0.0.26-x86_64-pc-windows-msvc\coreutils-0.0.26-x86_64-pc-windows-msvc>coreutils ln -sf c:\d2\d.txt -t c:\data

I would be very interesting to have this cp --force feature implemented for Windows too.

ohault avatar May 29 '24 20:05 ohault