From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: bug in copy-directory Date: Fri, 28 Jan 2011 18:17:33 +0100 Message-ID: References: <87ipxaidea.fsf@gmail.com> <87k4hp96g0.fsf@stupidchicken.com> <878vy59ejz.fsf@stupidchicken.com> <87lj25ar3v.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296235708 7110 80.91.229.12 (28 Jan 2011 17:28:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2011 17:28:28 +0000 (UTC) Cc: Chong Yidong , Michael Albinus , Stefan Monnier , emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 28 18:28:22 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pis7M-0006de-EK for ged-emacs-devel@m.gmane.org; Fri, 28 Jan 2011 18:28:16 +0100 Original-Received: from localhost ([127.0.0.1]:40982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PirxT-0007sU-IY for ged-emacs-devel@m.gmane.org; Fri, 28 Jan 2011 12:18:03 -0500 Original-Received: from [140.186.70.92] (port=57544 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PirxL-0007pe-FM for emacs-devel@gnu.org; Fri, 28 Jan 2011 12:17:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PirxK-0001lt-FW for emacs-devel@gnu.org; Fri, 28 Jan 2011 12:17:55 -0500 Original-Received: from mail-ew0-f41.google.com ([209.85.215.41]:59304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PirxK-0001ln-B1 for emacs-devel@gnu.org; Fri, 28 Jan 2011 12:17:54 -0500 Original-Received: by ewy27 with SMTP id 27so1579869ewy.0 for ; Fri, 28 Jan 2011 09:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=vERbffDCz+DpW3EXojZxNpHbDSOKr+T3FQho58J9FuM=; b=NPoPAyjMu6T5o26rd3FBKeAM6gB9WvrO2SKJYBHFkXjUtXNH82I98dq/EXuZGrgr/y oS0E3qf/SrNS/+rzhNmok525EFI4Mgw/zJLteS9eCegKfrPmEMKXa8lf7OTROul28GkV HqozUbkc6n45aLaPUTMyxnux2Q29fqX5lqhMk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=S68IjM3FC55RBOZ1eZiXIsGO7SHTWL5c+c2X8gA9nbzyK5ljfYp0y9lXe50Vy1MnU0 Q6lyrd2iHa8wfj543JHrPk8TqogavKl1ZwsWtXgSSSw4mgIIKpO2osFKbNVf3wVSb7Ek /ONZCXtJH5/A0HTNLkVtDjZYH5sTevWdhJfoY= Original-Received: by 10.213.33.206 with SMTP id i14mr5163160ebd.80.1296235073409; Fri, 28 Jan 2011 09:17:53 -0800 (PST) Original-Received: by 10.213.36.11 with HTTP; Fri, 28 Jan 2011 09:17:33 -0800 (PST) In-Reply-To: <87lj25ar3v.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135164 Archived-At: On Fri, Jan 28, 2011 at 6:13 PM, Thierry Volpiatto wrote: >> >> Isn't the semantics of "cp" broken + undescribed? > No Yes ;-) >> I had a directory x1, but no x2. Doing >> >> =C2=A0 cp -r x1 x2 >> >> works as I expect it to, i.e. x1 and x2 are identical. >> >> However after a second >> >> =C2=A0 cp -r x1 x2 >> >> there is suddenly a directory x1 inside x2. > That's what is expected, imagine with what you expect, x2 is your home > directory or /etc, and you copy x1 to it by error... So? The urge to copy? >> I really dislike this kind of context specific semantics that is both >> unintuitive and undescribed. > cp have a nice man page, you should read it. I do not have it on w32. Just the output from cp --help and it does not describe this behaviour.