bug-coreutils
[Top][All Lists]
Advanced

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

Re: Interactivity (-i) and non-interactivity


From: James Youngman
Subject: Re: Interactivity (-i) and non-interactivity
Date: Tue, 13 Mar 2007 09:44:51 +0000

On 3/12/07, Peter D. <address@hidden> wrote:
On Monday 12 March 2007 03:28, Jan Engelhardt wrote:
> Hello,
>
>
> by default, coreutils cp will overwrite a file. Hence I put in
>
>       alias cp='/bin/cp -i'
>
> into the system-wide profile. However, users wishing to override the
> now-system-default of interactivity cannot do so
[snip]

They can do so, by using the full path name of the command.
On my system,

        /bin/cp fileA fileB

does what you want.

Or better imho,

if alias >/dev/null 2>&1; then
 # The shell has aliasing support turned on.  Use it.
 # Don't annoy users who understand what cp does, but
 # provide a fluffier version for the timid.
 unalias cp
 alias copy="cp -i"
fi




reply via email to

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