From unknown Sat Aug 16 11:33:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40656: Re-copying a folder results in 3 folders? Resent-From: Tomas Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 16 Apr 2020 11:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40656 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 40656@debbugs.gnu.org X-Debbugs-Original-To: "bug-coreutils" Received: via spool by submit@debbugs.gnu.org id=B.15870369634833 (code B ref -1); Thu, 16 Apr 2020 11:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Apr 2020 11:36:03 +0000 Received: from localhost ([127.0.0.1]:37660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP2oD-0001FT-Uv for submit@debbugs.gnu.org; Thu, 16 Apr 2020 07:36:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:58909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP1S3-00058B-Il for submit@debbugs.gnu.org; Thu, 16 Apr 2020 06:08:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60369) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jP1S2-0007om-Gq for bug-coreutils@gnu.org; Thu, 16 Apr 2020 06:08:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jP1S1-00052y-G5 for bug-coreutils@gnu.org; Thu, 16 Apr 2020 06:08:54 -0400 Received: from sender4-of-o55.zoho.com ([136.143.188.55]:21512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jP1S1-00051w-7v for bug-coreutils@gnu.org; Thu, 16 Apr 2020 06:08:53 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1587031730; cv=none; d=zohomail.com; s=zohoarc; b=IWgFHzbVLa4xjRdiW8BnD6CxC956HzZnMoRL71fuf7q+BwHQFIdCrbR+49Awayt3cPMrwelepLAz4iQbfcKFpJlHeXov+yOJoSqFm7Cd55rXr94Ba1qrSmZ143DhCysCSgcx6E1N3+bTVzoCA7hPxAdJ5dqAZ3Ag6wNg1Kph1nM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587031730; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=z7Lp1LY1zeb90vAMsfgpf/UDq5qdEWlfnu+/3tUqIjw=; b=P5wGSevRnzvO5otvimdEDKe+tSg5eTu5bWGRBps8LiKzh1UTkrYRASA4almbCFACd6hoLg/ateEEOUCpU4M1jnhxxI/jCiYSRtSQakfdhooel8wrWsaXdcJc3IqR+Ls298yT1gSxMx1BLe6hrJRJdb4HcWdDgiIqk7IsDlfBpaU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=tomaszubiri.com; spf=pass smtp.mailfrom=correo@tomaszubiri.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1587031730; s=raiz; d=tomaszubiri.com; i=correo@tomaszubiri.com; h=Date:From:To:Message-Id:In-Reply-To:Subject:MIME-Version:Content-Type; bh=z7Lp1LY1zeb90vAMsfgpf/UDq5qdEWlfnu+/3tUqIjw=; b=T64dlmB/u0ZJuy2KSx/5zrzs/1PAzi4jSVaru1AJ+4gImdQYun4kyYksI+FPPqMl 4yOm/tDHAoA9zl3Z152dDqpZUbafhyX4GsjPZEppJGpP7oK0XkV8KCdJFKaGVbLAWaS 56V3y/tDye3QtO3sbKW1RdG4tCzAtgfBY1+pivak= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1587031728306395.47941439870874; Thu, 16 Apr 2020 03:08:48 -0700 (PDT) Date: Thu, 16 Apr 2020 07:08:48 -0300 From: Tomas Message-Id: <171827660af.11994f861727693.6152356356197203608@tomaszubiri.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2369195_1382304333.1587031728303" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 136.143.188.55 X-Spam-Score: 0.3 (/) X-Mailman-Approved-At: Thu, 16 Apr 2020 07:35:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) ------=_Part_2369195_1382304333.1587031728303 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Here is a minimum example of the bug: =C2=A0 #mkdir testcp =C2=A0 #cd testcp =C2=A0 #mkdir origin =C2=A0 #touch origin/a =C2=A0 #cp -r origin destination =C2=A0 #cp -r origin destination The expected result is: #tree =E2=94=9C=E2=94=80=E2=94=80 destination =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 a =E2=94=94=E2=94=80=E2=94=80 origin =C2=A0=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 a or even this, who would I be to judge: #tree =E2=94=9C=E2=94=80=E2=94=80 destination =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 origin =E2=94=82=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 a =E2=94=94=E2=94=80=E2=94=80 origin =C2=A0=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 a But this is unacceptable: #tree =E2=94=9C=E2=94=80=E2=94=80 destination =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 a =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 origin =E2=94=82=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 a =E2=94=94=E2=94=80=E2=94=80 origin =C2=A0=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 a The result is worse if you add a file in between copies. Now you would have= 3 a files and 2 b files. Thank you, Tom=C3=A1s ------=_Part_2369195_1382304333.1587031728303 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =
Hello,


Here is a minimum exa= mple of the bug:

  #mkdir testcp
 = ; #cd testcp
  #mkdir origin
  #touch= origin/a
  #cp -r origin destination
&nbs= p; #cp -r origin destination

The expected resu= lt is:

#tree
=E2=94=9C=E2=94=80= =E2=94=80 destination
=E2=94=82   =E2=94=9C=E2=94= =80=E2=94=80 a
=E2=94=94=E2=94=80=E2=94=80 origin
    =E2=94=94=E2=94=80=E2=94=80 a

or ev= en this, who would I be to judge:

#tree
=E2=94=9C=E2=94=80=E2=94=80 destination
=E2=94=82&nbs= p;  =E2=94=94=E2=94=80=E2=94=80 origin
=E2=94=82 &n= bsp;     =E2=94=94=E2=94=80=E2=94=80 a
= =E2=94=94=E2=94=80=E2=94=80 origin
    =E2=94= =94=E2=94=80=E2=94=80 a


But this is unacceptable:
=
#tree
=E2=94=9C=E2=94=80=E2=94=80 destination<= br>
=E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 a
=
=E2=94=82   =E2=94=94=E2=94=80=E2=94=80 origin
=E2=94=82       =E2=94=94=E2=94=80=E2=94=80 = a
=E2=94=94=E2=94=80=E2=94=80 origin
 &nbs= p;  =E2=94=94=E2=94=80=E2=94=80 a

The res= ult is worse if you add a file in between copies. Now you would have 3 a fi= les and 2 b files.

Thank you,
Tom=C3=A1s

------=_Part_2369195_1382304333.1587031728303--