[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mv, cp ask anyway though bound to fail
From: |
Jim Meyering |
Subject: |
Re: mv, cp ask anyway though bound to fail |
Date: |
Thu, 15 Mar 2007 20:51:38 +0100 |
Dan Jacobson <address@hidden> wrote:
> 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
They're not bound to fail.
An "alternate access method" (e.g., an ACL) may allow it to succeed.
- mv, cp ask anyway though bound to fail, Dan Jacobson, 2007/03/15
- Re: mv, cp ask anyway though bound to fail,
Jim Meyering <=
- Re: mv, cp ask anyway though bound to fail, Dan Jacobson, 2007/03/15
- Re: mv, cp ask anyway though bound to fail, Paul Eggert, 2007/03/16
- Re: mv, cp ask anyway though bound to fail, Jim Meyering, 2007/03/16
- Re: mv, cp ask anyway though bound to fail, Dan Jacobson, 2007/03/20