|
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
[Prev in Thread] | Current Thread | [Next in Thread] |