[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug 154602] Re: incorrect cp(1) behaviour upon "mkdir foo; cp -r f

From: Jim Meyering
Subject: Re: [Bug 154602] Re: incorrect cp(1) behaviour upon "mkdir foo; cp -r foo foo"
Date: Mon, 30 Mar 2009 23:18:40 +0200

Jens Ropers wrote:
> 2009/3/30 jaduncan <address@hidden>:
>> This is correct behaviour as per POSIX - it's how it should work!
> Says who?

I'm confident that POSIX does not require
cp -r dir dir to create dir/dir ;-)

>> This is something that would be an upstream bug, but they will not want
>> to change this behaviour.
> Well, have you asked them?

I don't like the existing behavior, but this is a rather hairy corner of
copy.c already, and considering we're talking about the state left after
the user runs a bogus command (which is surprisingly hard to detect _in
general_), I'm in no big hurry to fix it.

However, if someone sends in a perfect patch,


I'll be very interested.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]