Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cp: gnu test case i-2 compatibility for mv #6658

Open
matrixhead opened this issue Aug 21, 2024 · 1 comment
Open

cp: gnu test case i-2 compatibility for mv #6658

matrixhead opened this issue Aug 21, 2024 · 1 comment
Labels

Comments

@matrixhead
Copy link
Contributor

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'?
@sheikhevan
Copy link

sheikhevan commented Sep 2, 2024

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

andrewliebenow added a commit to andrewliebenow/coreutils that referenced this issue Sep 15, 2024
If the target exists, and does not have the user write bit (S_IWUSR)
set, additional information should be added to the overwrite
confirmation prompt.

This should get the "i-2" test to pass. See
uutils#6658.
andrewliebenow added a commit to andrewliebenow/coreutils that referenced this issue Sep 15, 2024
If the target exists, and does not have the user write bit (S_IWUSR)
set, additional information should be added to the overwrite
confirmation prompt.

This should get the "i-2" test to pass. See
uutils#6658.
andrewliebenow added a commit to andrewliebenow/coreutils that referenced this issue Sep 16, 2024
If the target exists, and does not have the user write bit (S_IWUSR)
set, additional information should be added to the overwrite
confirmation prompt.

This should get the "i-2" test to pass. See
uutils#6658.
andrewliebenow added a commit to andrewliebenow/coreutils that referenced this issue Sep 16, 2024
If the target exists, and does not have the user write bit (S_IWUSR)
set, additional information should be added to the overwrite
confirmation prompt.

This should get the "i-2" test to pass. See
uutils#6658.
andrewliebenow added a commit to andrewliebenow/coreutils that referenced this issue Sep 16, 2024
If the target exists, and does not have the user write bit (S_IWUSR)
set, additional information should be added to the overwrite
confirmation prompt.

This should get the "i-2" test to pass. See
uutils#6658.
sylvestre added a commit that referenced this issue Sep 18, 2024
* cp: show mode if target does not have S_IWUSR

If the target exists, and does not have the user write bit (S_IWUSR)
set, additional information should be added to the overwrite
confirmation prompt.

This should get the "i-2" test to pass. See
#6658.

* cp: with -i, delete destination if needed

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants