On 3/12/07, Peter D. <[EMAIL PROTECTED]> 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 _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
