coreutils
coreutils copied to clipboard
cp: gnu test case `i-2` compatibility for mv
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'?
It seems like the current code is taking after freebsd coreutils, which only ask for overwrite.
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.