Re: [Hampshire] cp error

Top Page

Reply to this message
Author: Victor Churchill
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] cp error
2008/6/19 Richard Brown <mynamewasgone@???>:
> On Thu, Jun 19, 2008 at 12:15, Lisi <hantslug@???> wrote:
>> Would it be better to use -f, or to undo the alias? I.e. is -f "safe" in
>> other ways?
>
> I think I'd personally either remove the alias whever the distro is
> setting it, or add unalias cp in my bashrc, depending on how the
> distro handles changes to config files.


... or leave the alias as-is but specify /bin/cp in your script.
That way the cript should do what you want,
but at the same time if you were to type, in a shell,
$ cp Rubbish Precious
then you would still be asked to confirm.