Subject: Re: bug#20603: Possible bug in cp

From: Pádraig Brady <[email-masked]>
Date: Mon, 18 May 2015 18:00:33 +0100

On 18/05/15 15:49, Chris Puttick wrote:
> Follow up, reproducing:
> 
> tested on openSuSE Factory
> 
> Do:
> 
> # mkdir test
> # echo "this is file 1" > test/file1
> # touch test/file2
> # cp test/*
> # cat test/file2
> 
> If there is a 3rd file in the directory you get an error:
> 
> "cp: target ‘test/file3’ is not a directory"

Note you can prompt before overwriting existing files like:

cp -i file1 file2

cheers,
Pádraig