From unknown Sun Aug 10 04:34:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23213: cp command with -P option odd behavior over ssh Resent-From: Kousik Mandal Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 04 Apr 2016 11:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23213 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 23213@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.145976838717310 (code B ref -1); Mon, 04 Apr 2016 11:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Apr 2016 11:13:07 +0000 Received: from localhost ([127.0.0.1]:50628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an2RP-0004V7-Lh for submit@debbugs.gnu.org; Mon, 04 Apr 2016 07:13:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an2RO-0004Ue-I5 for submit@debbugs.gnu.org; Mon, 04 Apr 2016 07:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1an2RI-0002lf-Ck for submit@debbugs.gnu.org; Mon, 04 Apr 2016 07:13:01 -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.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an2RI-0002lb-9F for submit@debbugs.gnu.org; Mon, 04 Apr 2016 07:13:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an2RH-0004OB-CQ for bug-coreutils@gnu.org; Mon, 04 Apr 2016 07:13:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1an2RG-0002lQ-CC for bug-coreutils@gnu.org; Mon, 04 Apr 2016 07:12:59 -0400 Received: from mail-ig0-x22e.google.com ([2607:f8b0:4001:c05::22e]:37387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an2RG-0002lJ-6S for bug-coreutils@gnu.org; Mon, 04 Apr 2016 07:12:58 -0400 Received: by mail-ig0-x22e.google.com with SMTP id g8so22064401igr.0 for ; Mon, 04 Apr 2016 04:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=E4zCJPHbGCs5eCEGZbnRw8Ah+XXBdozsSGBRuGPxGzU=; b=gCqyDJx/hQrEKhzRUQjgCbDjL6zwEcCEWxrP92jYKyL15CkDBDlYCBkgwIGYtscaWp YcqOicWXztrC9Q96fksOfj0mV0Ogd9aQJXn6uS8k3H3Z7CZUmTzvnH3+2kzfGNWyPR1R oxtMZmaHSgpxHxyd4qrqZsNijlD9jOOxMzmPgrQzGGjD9VlbihJnGXWQKfE2z1FjQrX9 +tdLR1KfFJE3yJcxDWOlnolKYrcH5YABEJHeIei2wihQ5cOcUFXACmrEtYoFknkuzr5r 1xhsFqthfsZrfXn0pamYnBQ5pU1/IdebHsjp4I4IKJ1GMWQc9Ly5ywzLI4NU2WHwlFCM ETKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=E4zCJPHbGCs5eCEGZbnRw8Ah+XXBdozsSGBRuGPxGzU=; b=YSIoSgl0YX84dj7DR7817TByg6DMQcJs77jyny++Bd3fEwuFSI42LFgCKUc232kLjA lDCnSmz3ztj6hDaNSj0CdfxsKTEiPRio1uZKUkghjbkm5G+2/rUuOwJt6pzT6hGLs9cj qilVnMCBBIUxBF16aCK7DkLuOZ0VkmVyGDsHt8z+4UkQmOjLDawW/DKkQoows1FvkvIc cD1vS5NqLlh8UOTeymwr6AEm8P4xGe7jyNkHWduupdCQpdBWb0KEXyDhglxVacKoGUUR 8qLLiH3zghLnC1s9LT1JYDkPStn1mDJouc1aYHOaUhfn18x7mHEoJ9Wi5UEIIrm63SSz Xp6g== X-Gm-Message-State: AD7BkJLdIB/TuW3BqnNs6g/Mx4utRXRLxZbFFTnr7/sgxTw8SvGcpIKELdUZy1K2d7gQFb3YsH4B0phShmt0hw== MIME-Version: 1.0 X-Received: by 10.107.156.9 with SMTP id f9mr6590108ioe.120.1459768377147; Mon, 04 Apr 2016 04:12:57 -0700 (PDT) Received: by 10.64.173.163 with HTTP; Mon, 4 Apr 2016 04:12:57 -0700 (PDT) Date: Mon, 4 Apr 2016 16:42:57 +0530 Message-ID: From: Kousik Mandal Content-Type: multipart/alternative; boundary=001a1140c578930620052fa6cf57 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) --001a1140c578930620052fa6cf57 Content-Type: text/plain; charset=UTF-8 Hi Team, In Linux system, I have created /tmp/123 directory. ---snip--- mkdir -p /tmp/123 ---snip--- /tmp/4576 is a non existent directory, now I am executing following cp command ---snip--- cp -vPprf /tmp/123 /tmp/4576 `/tmp/123' -> `/tmp/4576' ls /tmp/4576 123 ---snip--- So above command is successfully copied directory 123 under /tmp/4576 Now I am trying to execute the same command over ssh ----snip--- [user1@test~]$ ssh user1@testsh -c 'cp -vPprf /tmp/123 /tmp/4576' user1@test's password: cp: missing file arguments Try `cp --help' for more information. ----snip--- but it's always failing. I have tried the same command on multiple Linux system and found same failure. Can you please help me why it's failing? Is it a bug with cp -P option? Are there any workaround mean any kind of configuration change is needed to get it work? Thanks, Kousik --001a1140c578930620052fa6cf57 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Team,

In Linux system, I have cr= eated /tmp/123 directory.
---snip---
mkdir -p /tmp/123---snip---

/tmp/4576 is a non existent directory, now I am executin= g following cp command
---snip---
cp -vPprf /tmp/123 /tmp/4576
`/t= mp/123' -> `/tmp/4576'


ls /tmp/4576
123=
---snip---

So above command is successfully copied di= rectory 123 under /tmp/4576

Now I am trying to execute th= e same command over ssh

----snip---
[user1@test~]$ ssh= user1@testsh -c=C2=A0 'cp -vPprf /tmp/123 /tmp/4576'
user1@test= 's password:
cp: missing file arguments
Try `cp --help' for m= ore information.
----snip---

but it's always faili= ng. I have tried the same command on multiple Linux system and found same f= ailure.

Can you please help me why it's failing?
<= /div>
Is it a bug with cp -P option?
Are there any workar= ound mean any kind of configuration change is needed to get it work?
Thanks,
Kousik


<= /div>
--001a1140c578930620052fa6cf57-- From unknown Sun Aug 10 04:34:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Kousik Mandal Subject: bug#23213: closed (Re: bug#23213: cp command with -P option odd behavior over ssh) Message-ID: References: <570280E4.7020106@cs.ucla.edu> X-Gnu-PR-Message: they-closed 23213 X-Gnu-PR-Package: coreutils Reply-To: 23213@debbugs.gnu.org Date: Mon, 04 Apr 2016 14:58:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1459781882-13460-1" This is a multi-part message in MIME format... ------------=_1459781882-13460-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #23213: cp command with -P option odd behavior over ssh which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 23213@debbugs.gnu.org. --=20 23213: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23213 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1459781882-13460-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 23213-done) by debbugs.gnu.org; 4 Apr 2016 14:57:48 +0000 Received: from localhost ([127.0.0.1]:51225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an5wq-0003Uh-Gt for submit@debbugs.gnu.org; Mon, 04 Apr 2016 10:57:48 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:53351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an5wp-0003UU-4i for 23213-done@debbugs.gnu.org; Mon, 04 Apr 2016 10:57:47 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BB5F4160D97; Mon, 4 Apr 2016 07:57:41 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id oopn5AhhB4J3; Mon, 4 Apr 2016 07:57:41 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0EC18161249; Mon, 4 Apr 2016 07:57:41 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id weVEOhQHAzf5; Mon, 4 Apr 2016 07:57:40 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id EABB1160D97; Mon, 4 Apr 2016 07:57:40 -0700 (PDT) Subject: Re: bug#23213: cp command with -P option odd behavior over ssh To: Kousik Mandal , 23213-done@debbugs.gnu.org References: From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <570280E4.7020106@cs.ucla.edu> Date: Mon, 4 Apr 2016 07:57:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 23213-done 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: -1.0 (-) On 04/04/2016 04:12 AM, Kousik Mandal wrote: > [user1@test~]$ ssh user1@testsh -c 'cp -vPprf /tmp/123 /tmp/4576' ssh -c takes a cipher-spec as an operand, not a command. ------------=_1459781882-13460-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Apr 2016 11:13:07 +0000 Received: from localhost ([127.0.0.1]:50628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an2RP-0004V7-Lh for submit@debbugs.gnu.org; Mon, 04 Apr 2016 07:13:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an2RO-0004Ue-I5 for submit@debbugs.gnu.org; Mon, 04 Apr 2016 07:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1an2RI-0002lf-Ck for submit@debbugs.gnu.org; Mon, 04 Apr 2016 07:13:01 -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.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an2RI-0002lb-9F for submit@debbugs.gnu.org; Mon, 04 Apr 2016 07:13:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an2RH-0004OB-CQ for bug-coreutils@gnu.org; Mon, 04 Apr 2016 07:13:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1an2RG-0002lQ-CC for bug-coreutils@gnu.org; Mon, 04 Apr 2016 07:12:59 -0400 Received: from mail-ig0-x22e.google.com ([2607:f8b0:4001:c05::22e]:37387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an2RG-0002lJ-6S for bug-coreutils@gnu.org; Mon, 04 Apr 2016 07:12:58 -0400 Received: by mail-ig0-x22e.google.com with SMTP id g8so22064401igr.0 for ; Mon, 04 Apr 2016 04:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=E4zCJPHbGCs5eCEGZbnRw8Ah+XXBdozsSGBRuGPxGzU=; b=gCqyDJx/hQrEKhzRUQjgCbDjL6zwEcCEWxrP92jYKyL15CkDBDlYCBkgwIGYtscaWp YcqOicWXztrC9Q96fksOfj0mV0Ogd9aQJXn6uS8k3H3Z7CZUmTzvnH3+2kzfGNWyPR1R oxtMZmaHSgpxHxyd4qrqZsNijlD9jOOxMzmPgrQzGGjD9VlbihJnGXWQKfE2z1FjQrX9 +tdLR1KfFJE3yJcxDWOlnolKYrcH5YABEJHeIei2wihQ5cOcUFXACmrEtYoFknkuzr5r 1xhsFqthfsZrfXn0pamYnBQ5pU1/IdebHsjp4I4IKJ1GMWQc9Ly5ywzLI4NU2WHwlFCM ETKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=E4zCJPHbGCs5eCEGZbnRw8Ah+XXBdozsSGBRuGPxGzU=; b=YSIoSgl0YX84dj7DR7817TByg6DMQcJs77jyny++Bd3fEwuFSI42LFgCKUc232kLjA lDCnSmz3ztj6hDaNSj0CdfxsKTEiPRio1uZKUkghjbkm5G+2/rUuOwJt6pzT6hGLs9cj qilVnMCBBIUxBF16aCK7DkLuOZ0VkmVyGDsHt8z+4UkQmOjLDawW/DKkQoows1FvkvIc cD1vS5NqLlh8UOTeymwr6AEm8P4xGe7jyNkHWduupdCQpdBWb0KEXyDhglxVacKoGUUR 8qLLiH3zghLnC1s9LT1JYDkPStn1mDJouc1aYHOaUhfn18x7mHEoJ9Wi5UEIIrm63SSz Xp6g== X-Gm-Message-State: AD7BkJLdIB/TuW3BqnNs6g/Mx4utRXRLxZbFFTnr7/sgxTw8SvGcpIKELdUZy1K2d7gQFb3YsH4B0phShmt0hw== MIME-Version: 1.0 X-Received: by 10.107.156.9 with SMTP id f9mr6590108ioe.120.1459768377147; Mon, 04 Apr 2016 04:12:57 -0700 (PDT) Received: by 10.64.173.163 with HTTP; Mon, 4 Apr 2016 04:12:57 -0700 (PDT) Date: Mon, 4 Apr 2016 16:42:57 +0530 Message-ID: Subject: cp command with -P option odd behavior over ssh From: Kousik Mandal To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary=001a1140c578930620052fa6cf57 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit 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: -4.0 (----) --001a1140c578930620052fa6cf57 Content-Type: text/plain; charset=UTF-8 Hi Team, In Linux system, I have created /tmp/123 directory. ---snip--- mkdir -p /tmp/123 ---snip--- /tmp/4576 is a non existent directory, now I am executing following cp command ---snip--- cp -vPprf /tmp/123 /tmp/4576 `/tmp/123' -> `/tmp/4576' ls /tmp/4576 123 ---snip--- So above command is successfully copied directory 123 under /tmp/4576 Now I am trying to execute the same command over ssh ----snip--- [user1@test~]$ ssh user1@testsh -c 'cp -vPprf /tmp/123 /tmp/4576' user1@test's password: cp: missing file arguments Try `cp --help' for more information. ----snip--- but it's always failing. I have tried the same command on multiple Linux system and found same failure. Can you please help me why it's failing? Is it a bug with cp -P option? Are there any workaround mean any kind of configuration change is needed to get it work? Thanks, Kousik --001a1140c578930620052fa6cf57 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Team,

In Linux system, I have cr= eated /tmp/123 directory.
---snip---
mkdir -p /tmp/123---snip---

/tmp/4576 is a non existent directory, now I am executin= g following cp command
---snip---
cp -vPprf /tmp/123 /tmp/4576
`/t= mp/123' -> `/tmp/4576'


ls /tmp/4576
123=
---snip---

So above command is successfully copied di= rectory 123 under /tmp/4576

Now I am trying to execute th= e same command over ssh

----snip---
[user1@test~]$ ssh= user1@testsh -c=C2=A0 'cp -vPprf /tmp/123 /tmp/4576'
user1@test= 's password:
cp: missing file arguments
Try `cp --help' for m= ore information.
----snip---

but it's always faili= ng. I have tried the same command on multiple Linux system and found same f= ailure.

Can you please help me why it's failing?
<= /div>
Is it a bug with cp -P option?
Are there any workar= ound mean any kind of configuration change is needed to get it work?
Thanks,
Kousik


<= /div>
--001a1140c578930620052fa6cf57-- ------------=_1459781882-13460-1-- From unknown Sun Aug 10 04:34:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23213: More observation on cp command option References: In-Reply-To: Resent-From: Kousik Mandal Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 04 Apr 2016 16:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23213 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 23213@debbugs.gnu.org Received: via spool by 23213-submit@debbugs.gnu.org id=B23213.145978812022849 (code B ref 23213); Mon, 04 Apr 2016 16:42:01 +0000 Received: (at 23213) by debbugs.gnu.org; 4 Apr 2016 16:42:00 +0000 Received: from localhost ([127.0.0.1]:51307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an7Zg-0005wT-05 for submit@debbugs.gnu.org; Mon, 04 Apr 2016 12:42:00 -0400 Received: from mail-ig0-f178.google.com ([209.85.213.178]:33308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an7Ze-0005wH-Gg for 23213@debbugs.gnu.org; Mon, 04 Apr 2016 12:41:59 -0400 Received: by mail-ig0-f178.google.com with SMTP id ma7so97444073igc.0 for <23213@debbugs.gnu.org>; Mon, 04 Apr 2016 09:41:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=x67a0NuZiAutJPRhTTR+M2JTp8OPHGrzx3KfYr1GwFA=; b=FuYEvm/F8gTdyuSQQi62EmYLup4+c6OjRZehFHUhcEGNcXxKZcsOCwi9JBuM1lOUNP s8VI916NEImk1ckRmhvxU4emW0Paj0ktQXnNIDg27BH9em2sdUGyT8bNnLiyoy2PN9JX 0gBTBgMQih+8MZ1RjjmMmm5QOnDMNr9oS9yRNDBoVxR72CYuOR9gSpmM73I/D/4RXF7p 0DxZRw0TpqUiLfxU9sjavVWdPYA0iuaMezdMTvdHSX86+xZNJXPwk80yhbh3zcc1gsLo I48/KBdk3gcOhxAKw7+VDD3MjSA4j0wk+ZlSJmQxHqX5SKgn1uq/LzBGnnP7MtFUY46B 1WEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=x67a0NuZiAutJPRhTTR+M2JTp8OPHGrzx3KfYr1GwFA=; b=AMNz7pwpGxE7k1BnSUnpY2SRd2545xaTyrsxGXWFb+YExnQBTpLyg91mZkqa5wLT3r eoM/+nWdP6nOhAcDnhgT/9wnUzq+t2HndS36LRLzkt4Rw9EK/HeQJg6hO4R+pU3IQZtY id37Et8ru9rA/xx+84J/IMdWIQ0bz/leUPZnCj05Qj4rsRRULPPvHYNJzBimPbO3w+dC CGaX+h4ha9Nziis0b7kPADKbiMY73B6Ku8vjDJcSNDzv1diCbN9t57KLC6LJgpmFpsw8 WlGpA4NcW92VTADv4GfdG6uiJ2M5ZYQLxCkxsVibUl9+PWbTFbJ9SRh7kyavNJa2gBAD 2YJg== X-Gm-Message-State: AD7BkJKwR3KR4v1Ft/8U8DuNf/9elxkTOv8KoKqkQ3JQKqX751Q/jpCFq2jujgsmrHRRuIkzq1JugaEcRs6ZQw== MIME-Version: 1.0 X-Received: by 10.50.47.49 with SMTP id a17mr12584742ign.35.1459788074411; Mon, 04 Apr 2016 09:41:14 -0700 (PDT) Received: by 10.64.173.163 with HTTP; Mon, 4 Apr 2016 09:41:14 -0700 (PDT) Date: Mon, 4 Apr 2016 22:11:14 +0530 Message-ID: From: Kousik Mandal Content-Type: multipart/alternative; boundary=089e01229fa69f7569052fab65d9 X-Spam-Score: -0.7 (/) 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.7 (/) --089e01229fa69f7569052fab65d9 Content-Type: text/plain; charset=UTF-8 Hi Team, Last time in my email one space was missing and that lead to confusion I guess. I am very sorry for typo. The cp command I tried to execute over ssh ----snip--- [user1@test ~]$ *ssh user1@test sh -c 'cp -vPprf /tmp/123 /tmp/4576'* user1@test's password: cp: missing file arguments Try `cp --help' for more information. ----snip--- last time by mistake I missed space between ssh user1@test and sh -c 'cp -vPprf /tmp/123 /tmp/4576' but it's always failing. I have tried the same command on multiple Linux system and found same failure. I dig into further following are the observations ---snip--- [user1@test ~]$ *which cp/bin/cp* [user1@test ~]$ *cp --versioncp (GNU coreutils) 5.97* Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License . There is NO WARRANTY, to the extent permitted by law. Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering. ---snip--- Then I execute [user1@test ~]$ *ssh user1@test sh -c "'which cp; cp -vPprf /tmp/123 /tmp/4576'"* user1@test's password: */usr/local/bin/cp* cp: Warning: the meaning of `-P' will change in the future to conform to POSIX. Use `--parents' for the old meaning, and `--no-dereference' for the new one. /tmp -> /tmp/4576/tmp `/tmp/123' -> `/tmp/4576/tmp/123' [user1@test ~]$* /usr/local/bin/cp --version* cp (fileutils) 4.1 Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering. Copyright (C) 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. So from the above observation it's very clear the problem is while trying to execute cp command over ssh then it's taking */usr/local/bin/cp *instead of */bin/cp *which is causing the problem. But in *PATH *env variable */bin* is preceding */usr/local/bin * [user1@test ~]$ *echo $PATH* /usr/lib64/qt-3.3/bin:/usr/kerberos/bin:*/bin* :/usr/bin:/usr/dev_infra/platform/bin:/usr/dev_infra/generic/bin: */usr/local/bin*:/usr/X11R6/bin:/usr/local/ade/bin:/scratch/user1/bin Even I checked in over ssh in PATH /bin appearing before /usr/local/bin [user1@test ~]$ *ssh user1@test sh -c "'echo $PATH; which cp; cp -vPprf /tmp/123 /tmp/4576'"* user1@test's password: /usr/lib64/qt-3.3/bin:/usr/kerberos/bin:*/bin* :/usr/bin:/usr/dev_infra/platform/bin:/usr/dev_infra/generic/bin: */usr/local/bin*:/usr/X11R6/bin:/usr/local/ade/bin:/scratch/user1/bin */usr/local/bin/cp* cp: Warning: the meaning of `-P' will change in the future to conform to POSIX. Use `--parents' for the old meaning, and `--no-dereference' for the new one. Can you please give me any pointer why over ssh cp command is taking */usr/local/bin *specific executable rather than* /bin* specific executable? Is there any way to force the cp command to take /bin specific executable over ssh? Thanks in advance. Best Regards, Kousik --089e01229fa69f7569052fab65d9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Team,

Last time in my email= one space was missing and that lead to confusion I guess. I am very sorry = for typo.

The cp command I tried to execute over ssh

----snip---
[user1@test ~]$ ssh user1@test=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 sh -c=C2=A0 'cp -vPprf /tmp/123 /tmp/4576'user1@test's password:
cp: missing file arguments
Try `cp --hel= p' for more information.
----snip---
last time by mist= ake I missed space between ssh user1@test and sh -c=C2=A0 'cp -vPprf /t= mp/123 /tmp/4576'

but it's always failing. I have trie= d the same command on multiple Linux system and found same failure.

=
I dig into further following are the observations

--= -snip---
[user1@test ~]$ which cp
/bin/cp


[user1@t= est ~]$ cp --version
cp (GNU coreutils) 5.97

Copyright (C) 200= 6 Free Software Foundation, Inc.
This is free software.=C2=A0 You may re= distribute copies of it under the terms of
the GNU General Public Licens= e <http://www.gnu.org/l= icenses/gpl.html>.
There is NO WARRANTY, to the extent permitted = by law.

Written by Torbjorn Granlund, David MacKenzie, and Jim Meyer= ing.
---snip---

Then I execute
[user1@test ~]$ = ssh user1@test sh -c=C2=A0 "'which cp; cp -vPprf /tmp/123 /tmp/45= 76'"
user1@test's password:
/usr/local/bin/cp=
cp: Warning: the meaning of `-P' will change in the future to confo= rm to POSIX.
Use `--parents' for the old meaning, and `--no-derefere= nce' for the new one.
/tmp -> /tmp/4576/tmp
`/tmp/123' -&g= t; `/tmp/4576/tmp/123'


[user1@test ~]$ /usr/local/bin/cp = --version
cp (fileutils) 4.1
Written by Torbjorn Granlund, David = MacKenzie, and Jim Meyering.

Copyright (C) 2001 Free Software Founda= tion, Inc.
This is free software; see the source for copying conditions.= =C2=A0 There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR= A PARTICULAR PURPOSE.


So from the above observation = it's very clear the problem is while trying to execute cp command over = ssh then it's taking /usr/local/bin/cp instead of
/bin/cp= which is causing the problem.


But in P= ATH env variable /bin is preceding /usr/local/bin
[us= er1@test ~]$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:<= b>/bin:/usr/bin:/usr/dev_infra/platform/bin:/usr/dev_infra/generic/bin:= /usr/local/bin:/usr/X11R6/bin:/usr/local/ade/bin:/scratch/user1/bin<= br>

Even I checked in over ssh in PATH /bin appear= ing before /usr/local/bin
[user1@test ~]$ ssh user1@test= =C2=A0=C2=A0 sh -c=C2=A0 "'echo $PATH; which cp; cp -vPprf /tmp/12= 3 /tmp/4576'"
user1@test's password:
/usr/lib64/qt-3= .3/bin:/usr/kerberos/bin:/bin:/usr/bin:/usr/dev_infra/platform/bin:/= usr/dev_infra/generic/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/a= de/bin:/scratch/user1/bin
/usr/local/bin/cp

cp: Warning: the m= eaning of `-P' will change in the future to conform to POSIX.
Use `-= -parents' for the old meaning, and `--no-dereference' for the new o= ne.


Can you please give me any pointer why over ssh c= p command is taking /usr/local/bin specific executable rather than /bin specific executable?

Is there any way t= o force the cp command to take /bin specific executable over ssh?
Thanks in advance.

Best Regards,
Kousik


--089e01229fa69f7569052fab65d9-- From unknown Sun Aug 10 04:34:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23213: Fwd: More observation on cp command option Resent-From: Kousik Mandal Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 04 Apr 2016 16:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23213 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 23213@debbugs.gnu.org X-Debbugs-Original-To: help-debbugs@gnu.org, 23213@debbugs.gnu.org Received: via spool by 23213-submit@debbugs.gnu.org id=B23213.145978911924274 (code B ref 23213); Mon, 04 Apr 2016 16:59:02 +0000 Received: (at 23213) by debbugs.gnu.org; 4 Apr 2016 16:58:39 +0000 Received: from localhost ([127.0.0.1]:51323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an7pn-0006JS-5e for submit@debbugs.gnu.org; Mon, 04 Apr 2016 12:58:39 -0400 Received: from mail-ig0-f182.google.com ([209.85.213.182]:36879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an7pl-0006JD-JW for 23213@debbugs.gnu.org; Mon, 04 Apr 2016 12:58:38 -0400 Received: by mail-ig0-f182.google.com with SMTP id g8so38520809igr.0 for <23213@debbugs.gnu.org>; Mon, 04 Apr 2016 09:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=p1qdztfeqQGRNyfUqtPe0Om1r5N2nrqlBG1VJWtiua0=; b=jjXBAIO+jSB2PvcwQJThUwvZpyHIrsJQlIDl6oijEXlvXOcM5+PAOWdSOZwQzA6AUK M8n5GJGqfVDRzI0V8lwG986DmDrO3APzwVClY7k64WkgUTidHusSV1z4tPxQyAndKac/ smZ+ZGVAZsL1J0wzsa1jvikmkvBuECvDMDVo3/A2EYcY8VEvG9byzJ+eS/ZDKrMXLETL AF/XSm4OZQj89HBMiETPIPQmpapsOw01GM83x8dXeqNxtEeoWs69rbJjZSyY8idfejcd lWFAYj7Wbig8uTcHC8p2ecOMcfqqH7tS1u7bJriL8ZK6396If/3BgMrdp/F34RIYuR63 iLGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=p1qdztfeqQGRNyfUqtPe0Om1r5N2nrqlBG1VJWtiua0=; b=A/1CGDOtNyS/hiw2o3wTFWC/QmC0riysIAD7CHqeTUUEdTv85T1XEzdULMnQcraliy iz94C9VZHHH0wLqIbx9+aveiuWk79+ZEWmPS3mtIuvfDvWOUhFVfeqWSk/u4K3yh+PzC P5o9u0u3VlDiTRHAVIiSS5LB5P9xiVRLhjJEsvw8GAi57nvRMENX2PCtrk6fuCg4Pjzb Qx3IpoBICQFqyy3SkFhx7uKLcog9ZS8nVlm+KYYuHDLFgfAcrOExy1m05Kp8RUssAGJK cacZ+mrDLWN/NGD4j/1fBGPPedm+4iglRl7X/Acw/ClYo3Zp87Eq8aPkp/btwd7+jr2q FQoA== X-Gm-Message-State: AD7BkJJdvdGqOkfApYqJHsA/cb+cCKb0mWMVv8xd1iWBryUIV6g8BbiuO6RcgGKHX+iT+9tYA+/aLmnytdcATw== MIME-Version: 1.0 X-Received: by 10.107.7.135 with SMTP id g7mr7493277ioi.81.1459789112014; Mon, 04 Apr 2016 09:58:32 -0700 (PDT) Received: by 10.64.173.163 with HTTP; Mon, 4 Apr 2016 09:58:31 -0700 (PDT) In-Reply-To: References: Date: Mon, 4 Apr 2016 22:28:31 +0530 Message-ID: From: Kousik Mandal Content-Type: multipart/alternative; boundary=001a113f9a1077fe31052faba341 X-Spam-Score: -0.7 (/) 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.7 (/) --001a113f9a1077fe31052faba341 Content-Type: text/plain; charset=UTF-8 Hi Team, Last time in my email one space was missing and that lead to confusion I guess. I am very sorry for typo. The cp command I tried to execute over ssh ----snip--- [user1@test ~]$ *ssh user1@test sh -c 'cp -vPprf /tmp/123 /tmp/4576'* user1@test's password: cp: missing file arguments Try `cp --help' for more information. ----snip--- last time by mistake I missed space between ssh user1@test and sh -c 'cp -vPprf /tmp/123 /tmp/4576' but it's always failing. I have tried the same command on multiple Linux system and found same failure. I dig into further following are the observations ---snip--- [user1@test ~]$ *which cp/bin/cp* [user1@test ~]$ *cp --versioncp (GNU coreutils) 5.97* Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License . There is NO WARRANTY, to the extent permitted by law. Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering. ---snip--- Then I execute [user1@test ~]$ *ssh user1@test sh -c "'which cp; cp -vPprf /tmp/123 /tmp/4576'"* user1@test's password: */usr/local/bin/cp* cp: Warning: the meaning of `-P' will change in the future to conform to POSIX. Use `--parents' for the old meaning, and `--no-dereference' for the new one. /tmp -> /tmp/4576/tmp `/tmp/123' -> `/tmp/4576/tmp/123' [user1@test ~]$* /usr/local/bin/cp --version* cp (fileutils) 4.1 Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering. Copyright (C) 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. So from the above observation it's very clear the problem is while trying to execute cp command over ssh then it's taking */usr/local/bin/cp *instead of */bin/cp *which is causing the problem. But in *PATH *env variable */bin* is preceding */usr/local/bin * [user1@test ~]$ *echo $PATH* /usr/lib64/qt-3.3/bin:/usr/kerberos/bin:*/bin* :/usr/bin:/usr/dev_infra/platform/bin:/usr/dev_infra/generic/bin: */usr/local/bin*:/usr/X11R6/bin:/usr/local/ade/bin:/scratch/user1/bin Even I checked in over ssh in PATH /bin appearing before /usr/local/bin [user1@test ~]$ *ssh user1@test sh -c "'echo $PATH; which cp; cp -vPprf /tmp/123 /tmp/4576'"* user1@test's password: /usr/lib64/qt-3.3/bin:/usr/kerberos/bin:*/bin* :/usr/bin:/usr/dev_infra/platform/bin:/usr/dev_infra/generic/bin: */usr/local/bin*:/usr/X11R6/bin:/usr/local/ade/bin:/scratch/user1/bin */usr/local/bin/cp* cp: Warning: the meaning of `-P' will change in the future to conform to POSIX. Use `--parents' for the old meaning, and `--no-dereference' for the new one. Can you please give me any pointer why over ssh cp command is taking */usr/local/bin *specific executable rather than* /bin* specific executable? Is there any way to force the cp command to take /bin specific executable over ssh? Thanks in advance. Best Regards, Kousik --001a113f9a1077fe31052faba341 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

=
Hi Team,

Last time in my email one space was missing and = that lead to confusion I guess. I am very sorry for typo.

The c= p command I tried to execute over ssh

----snip---
[us= er1@test ~]$ ssh user1@test=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sh -c=C2= =A0 'cp -vPprf /tmp/123 /tmp/4576'
user1@test's password= :
cp: missing file arguments
Try `cp --help' for more information= .
----snip---
last time by mistake I missed space between = ssh user1@test and sh -c=C2=A0 'cp -vPprf /tmp/123 /tmp/4576'
but it's always failing. I have tried the same command on multi= ple Linux system and found same failure.


I dig into furthe= r following are the observations

---snip---
[user1@tes= t ~]$ which cp
/bin/cp


[user1@test ~]$ cp --version
= cp (GNU coreutils) 5.97

Copyright (C) 2006 Free Software Foundation,= Inc.
This is free software.=C2=A0 You may redistribute copies of it und= er the terms of
the GNU General Public License <http://www.gnu.org/licenses/g= pl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering.
-= --snip---

Then I execute
[user1@test ~]$ ssh user1= @test sh -c=C2=A0 "'which cp; cp -vPprf /tmp/123 /tmp/4576'&q= uot;
user1@test's password:
/usr/local/bin/cp
cp: W= arning: the meaning of `-P' will change in the future to conform to POS= IX.
Use `--parents' for the old meaning, and `--no-dereference' = for the new one.
/tmp -> /tmp/4576/tmp
`/tmp/123' -> `/tmp/= 4576/tmp/123'


[user1@test ~]$ /usr/local/bin/cp --version=
cp (fileutils) 4.1
Written by Torbjorn Granlund, David MacKenzie= , and Jim Meyering.

Copyright (C) 2001 Free Software Foundation, Inc= .
This is free software; see the source for copying conditions.=C2=A0 Th= ere is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTIC= ULAR PURPOSE.


So from the above observation it's = very clear the problem is while trying to execute cp command over ssh then = it's taking /usr/local/bin/cp instead of
/bin/cp whic= h is causing the problem.


But in PATH e= nv variable /bin is preceding /usr/local/bin
[user1@test = ~]$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/bin:/usr/bin:/usr/dev_infra/platform/bin:/usr/dev_infra/generic/bin:/usr/l= ocal/bin:/usr/X11R6/bin:/usr/local/ade/bin:/scratch/user1/bin
=

Even I checked in over ssh in PATH /bin appearing befor= e /usr/local/bin
[user1@test ~]$ ssh user1@test=C2=A0=C2= =A0 sh -c=C2=A0 "'echo $PATH; which cp; cp -vPprf /tmp/123 /tmp/45= 76'"
user1@test's password:
/usr/lib64/qt-3.3/bin:/u= sr/kerberos/bin:/bin:/usr/bin:/usr/dev_infra/platform/bin:/usr/dev_i= nfra/generic/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/ade/bin:/s= cratch/user1/bin
/usr/local/bin/cp

cp: Warning: the meaning of= `-P' will change in the future to conform to POSIX.
Use `--parents&= #39; for the old meaning, and `--no-dereference' for the new one.

Can you please give me any pointer why over ssh cp command= is taking /usr/local/bin specific executable rather than /bin specific executable?

Is there any way to force t= he cp command to take /bin specific executable over ssh?

Thanks in advance.

Best Regards,
Kou= sik



--001a113f9a1077fe31052faba341-- From unknown Sun Aug 10 04:34:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23213: More observation on cp command option Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 04 Apr 2016 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23213 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Kousik Mandal , 23213@debbugs.gnu.org Received: via spool by 23213-submit@debbugs.gnu.org id=B23213.145978947424859 (code B ref 23213); Mon, 04 Apr 2016 17:05:02 +0000 Received: (at 23213) by debbugs.gnu.org; 4 Apr 2016 17:04:34 +0000 Received: from localhost ([127.0.0.1]:51328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an7vV-0006St-V0 for submit@debbugs.gnu.org; Mon, 04 Apr 2016 13:04:34 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:37223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an7vU-0006Sf-0f for 23213@debbugs.gnu.org; Mon, 04 Apr 2016 13:04:32 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3B63C161249; Mon, 4 Apr 2016 10:04:25 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id XlfuoTQm445W; Mon, 4 Apr 2016 10:04:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7C0F4161252; Mon, 4 Apr 2016 10:04:24 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0Pj8AilWKXYI; Mon, 4 Apr 2016 10:04:24 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 63A02161249; Mon, 4 Apr 2016 10:04:24 -0700 (PDT) References: From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <57029E98.2000202@cs.ucla.edu> Date: Mon, 4 Apr 2016 10:04:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) 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: -1.0 (-) This is really a question about ssh, not about coreutils, so I suggest bringing this up in an ssh format. That being said, try debugging your problem with 'sh -xc' instead of plain 'sh -c'. You'll find that the problem is not with 'cp'.