GNU bug report logs - #20603
Possible bug in cp

Previous Next

Package: coreutils;

Reported by: Chris Puttick <cputtick <at> gmail.com>

Date: Mon, 18 May 2015 15:45:06 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 20603 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Chris Puttick <cputtick <at> gmail.com>, 20603 <at> debbugs.gnu.org
Subject: Re: bug#20603: Possible bug in cp
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




This bug report was last modified 6 years and 219 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.