[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182)
From: |
Aaron Peterson |
Subject: |
Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182) |
Date: |
Tue, 13 Jan 2009 23:16:05 -0800 |
On Tue, Jan 13, 2009 at 8:22 AM, Kamil Dudka <address@hidden> wrote:
> Maybe it's nightmare for beginners, but it is a common use case. Certain Linux
> distributions define alias cp='cp -i' by default in the user's profile. So if
> you type 'cp -n' it is translated to 'cp -i -n' and it should not cause an
> error.
>
Wow, We have to keep so many things in consideration...
Note, interactive, and no-clobber don't have to be exclusive... Here
is an example of them combined: Interactively see if the person wants
to overwrite, then say, oh, you can't do it because you told me not
to.
Then -n -i would say it can't overwrite a certain file, and not even
have to ask.
-i -n would ask, and then say, can't overwrite or similar.
I believe that might not be the posix way though... Image magick
order matters... actually in cp order matters... So order could
matter here too.
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), (continued)
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Kamil Dudka, 2009/01/06
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Jim Meyering, 2009/01/07
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Kamil Dudka, 2009/01/07
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Jim Meyering, 2009/01/07
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Kamil Dudka, 2009/01/07
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Jim Meyering, 2009/01/07
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Eric Blake, 2009/01/07
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Jim Meyering, 2009/01/08
- Message not available
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Aaron Peterson, 2009/01/11
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Kamil Dudka, 2009/01/13
- Message not available
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182),
Aaron Peterson <=
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Matthew Woehlke, 2009/01/14
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Aaron Peterson, 2009/01/14
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Kamil Dudka, 2009/01/13
- Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182), Jim Meyering, 2009/01/14