coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

cp: gnu test case `i-2` compatibility for mv

Open matrixhead opened this issue 1 year ago • 1 comments

This shared test case for cp and mv checks how they behave when the -i and -f flags are given. The test is failing because uu-cp's prompt message differs from GNU's cp. for example

echo e > e
echo f > f
chmod 0 f
cp -if e f

this should give us a prompt saying.

cp: replace 'f', overriding mode 0000 (---------)?

but instead uu-cp would give us a normal prompt like this

cp: overwrite 'f'?

matrixhead avatar Aug 21 '24 11:08 matrixhead

It seems like the current code is taking after freebsd coreutils, which only ask for overwrite.

sheikhevan avatar Sep 02 '24 02:09 sheikhevan

The prompt messages seem fixed now, and the GNU test file tests/mv/i-2.sh is passing, so I'll close this as done.

jfinkels avatar Jan 26 '25 16:01 jfinkels