Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
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