Try using cp's --reply={yes,no,query} option.
PS: You don't mention the -i option. This must be aliased in some way, otherwise cp would overwrite the destination file without asking you.
cp -iR --reply=no <foo> <bar> would be the correct use if you want to make sure that destination files that excist are not overwritten.
cp -R --reply=no <foo> <bar> doesn't make too much sense, there will be no questions asked excisting files will be overwritten.
Last edited by druuna; 12-17-2003 at 01:49 PM.
|