bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mv, cp ask anyway though bound to fail


From: Dan Jacobson
Subject: mv, cp ask anyway though bound to fail
Date: Fri, 16 Mar 2007 01:54:25 +0800

What is it about these commands that if they know they are going to
fail, they still ask anyway. Same for emacs' dired-do-copy etc.
$ whoami
jidanni
$ cp file /etc/passwd
cp: overwrite `/etc/passwd', overriding mode 0644? y
cp: cannot create regular file `/etc/passwd': Permission denied
$ mv /etc/motd /etc/passwd
mv: overwrite `/etc/passwd', overriding mode 0644? y
mv: cannot move `/etc/motd' to `/etc/passwd': Permission denied
$ uname -ro
2.6.18-3-k7 GNU/Linux




reply via email to

[Prev in Thread] Current Thread [Next in Thread]