[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

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.

reply via email to

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