GNU bug report logs - #19605
quotes: cp: use ASCII single-quotes in "cp -v"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: 積丹尼 Dan Jacobson <jidanni@HIDDEN>; dated Thu, 15 Jan 2015 11:51:01 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Changed bug title to 'quotes: cp: use ASCII single-quotes in "cp -v"' from 'cp -v vs LC_ALL vs. quote marks' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 19605 <at> debbugs.gnu.org:


Received: (at 19605) by debbugs.gnu.org; 19 Jan 2015 08:55:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 19 03:55:06 2015
Received: from localhost ([127.0.0.1]:60970 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YD86z-00047e-UW
	for submit <at> debbugs.gnu.org; Mon, 19 Jan 2015 03:55:06 -0500
Received: from homie.mail.dreamhost.com ([208.97.132.208]:54527
 helo=homiemail-a8.g.dreamhost.com)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <jidanni@HIDDEN>) id 1YD86x-00047N-0T
 for 19605 <at> debbugs.gnu.org; Mon, 19 Jan 2015 03:55:03 -0500
Received: from homiemail-a8.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a8.g.dreamhost.com (Postfix) with ESMTP id 06F1FD22077;
 Mon, 19 Jan 2015 00:55:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc
 :subject:references:date:message-id:mime-version:content-type:
 content-transfer-encoding; s=jidanni.org; bh=Gmctt10UlybkoXuKXW/
 M3VWYlBA=; b=lv+rODHafVr+agL1euijIEqGAtB1BbXnJ/Z7UNGUy0B/iCslqmx
 8oK8DunSzuWY8ceZO39LlxEupnwntOMg8TPsZj3ioXHpHzCXGKW/O7T+1rolpRmY
 UqkvueK8ClY+A/KMgAH642wq+0ua/vw4Oq9uoh2gSBh73CcyAzDCaxZI=
Received: from jidanni.org (unknown [39.9.21.205])
 (using TLSv1 with cipher AES128-SHA (128/128 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by homiemail-a8.g.dreamhost.com (Postfix) with ESMTPSA id B19E1D22072;
 Mon, 19 Jan 2015 00:55:00 -0800 (PST)
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: Bob Proulx <bob@HIDDEN>
Subject: Re: bug#19605: cp -v vs LC_ALL vs. quote marks
References: <87oaq02s0g.fsf@HIDDEN>
Date: Mon, 19 Jan 2015 16:54:52 +0800
Message-ID: <878ugz176r.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 19605
Cc: 19605 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

About the -> stuff, maybe just output "sh -x" style output instead that
could be better digested if copy pasted back to the shell.

$ cp -v m n
=E2=80=98m=E2=80=99 -> =E2=80=98n=E2=80=99
$ set -x
$ cp m p
+ cp m p

(Hmmm... better I suppose, but sort of looks like I have some tty echoing
enabled and am not so confident the command completed.)




Information forwarded to bug-coreutils@HIDDEN:
bug#19605; Package coreutils. Full text available.

Message received at 19605 <at> debbugs.gnu.org:


Received: (at 19605) by debbugs.gnu.org; 16 Jan 2015 17:49:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 16 12:49:55 2015
Received: from localhost ([127.0.0.1]:59517 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YCB1v-0003cp-4M
	for submit <at> debbugs.gnu.org; Fri, 16 Jan 2015 12:49:55 -0500
Received: from joseki.proulx.com ([216.17.153.58]:51991)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bob@HIDDEN>) id 1YCB1t-0003cg-5f
 for 19605 <at> debbugs.gnu.org; Fri, 16 Jan 2015 12:49:54 -0500
Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119])
 by joseki.proulx.com (Postfix) with ESMTP id 6336A218F5;
 Fri, 16 Jan 2015 10:49:51 -0700 (MST)
Received: by hysteria.proulx.com (Postfix, from userid 1000)
 id 2D6242DC42; Fri, 16 Jan 2015 10:49:51 -0700 (MST)
Date: Fri, 16 Jan 2015 10:49:51 -0700
From: Bob Proulx <bob@HIDDEN>
To: 19605 <at> debbugs.gnu.org
Subject: Re: bug#19605: cp -v vs LC_ALL vs. quote marks
Message-ID: <20150116102636954012729@HIDDEN>
References: <87oaq02s0g.fsf@HIDDEN> <87k30o2ftd.fsf@HIDDEN>
 <54B7F1B8.5060905@HIDDEN>
 <20150115172807.GA10192@HIDDEN>
 <54B81B15.6010904@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <54B81B15.6010904@HIDDEN>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 19605
Cc: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Pdraig Brady wrote:
> Dan Jacobson wrote:
> > All I know is in xterm I click three times and all of '...' including
> > the quotes gets copied, which is fine with me. Just keep it all 0x27.
> 
> Ah right that's an xterm specific feature. See XTerm*on3Clicks here:
> http://lukas.zapletalovi.com/2013/07/hidden-gems-of-xterm.html

Actually no.  Triple click to select the full line is a standard
feature of X Windows since forever.  I use it all of the time in
Firefox and Chromium for instance.  Every X widget should support it
natively.

Since triple clicks copy the entire line then the `...' being part of
the entire line will get copied too.  But I don't think the ` is the
worst part of that.  The worst part is the -> part.  You wouldn't want
to be pasting that part into a shell.  Selecting the entire line would
be useful for pasting as plain text such as into an editor.  (I am not
suggesting changing the -> but just pointing it out.)

FWIW regardless of the historical font (that I have never seen in my
lifetime) of ` and ' being symmetrical I have never liked the use of
the `...' in quote context.  I would prefer to have the quoted strings
use '...' too.  I know several projects have gone that way.  It looks
better and is more useful both at the same time.

Bob




Information forwarded to bug-coreutils@HIDDEN:
bug#19605; Package coreutils. Full text available.

Message received at 19605 <at> debbugs.gnu.org:


Received: (at 19605) by debbugs.gnu.org; 15 Jan 2015 19:55:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 15 14:55:13 2015
Received: from localhost ([127.0.0.1]:58140 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YBqVc-00023H-Em
	for submit <at> debbugs.gnu.org; Thu, 15 Jan 2015 14:55:12 -0500
Received: from mail6.vodafone.ie ([213.233.128.184]:26399)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <P@HIDDEN>) id 1YBqVZ-00022w-IS
 for 19605 <at> debbugs.gnu.org; Thu, 15 Jan 2015 14:55:10 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AtoIAPIZuFRtTnDJ/2dsb2JhbABagwZSWIEjgWLDFIVuAQICgRVDAQEBAQF9hA0BBSMPAUYQCQINCwICBRYLAgIJAwIBAgFFBg0BBwEBiCwBCKEonGqFaY4mAQEIAQEBAR6BIY5YB4JogUEBBJIThweEdYNPiAcig24+MQGCQgEBAQ
Received: from unknown (HELO localhost.localdomain) ([109.78.112.201])
 by mail3.vodafone.ie with ESMTP; 15 Jan 2015 19:55:01 +0000
Message-ID: <54B81B15.6010904@HIDDEN>
Date: Thu, 15 Jan 2015 19:55:01 +0000
From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= <P@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>
Subject: Re: bug#19605: cp -v vs LC_ALL vs. quote marks
References: <87oaq02s0g.fsf@HIDDEN> <87k30o2ftd.fsf@HIDDEN>
 <54B7F1B8.5060905@HIDDEN> <20150115172807.GA10192@HIDDEN>
In-Reply-To: <20150115172807.GA10192@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 19605
Cc: 19605 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On 15/01/15 17:28, 積丹尼 Dan Jacobson wrote:
> All I know is in xterm I click three times and all of '...' including
> the quotes gets copied, which is fine with me. Just keep it all 0x27.

Ah right that's an xterm specific feature. See XTerm*on3Clicks here:
http://lukas.zapletalovi.com/2013/07/hidden-gems-of-xterm.html




Information forwarded to bug-coreutils@HIDDEN:
bug#19605; Package coreutils. Full text available.

Message received at 19605 <at> debbugs.gnu.org:


Received: (at 19605) by debbugs.gnu.org; 15 Jan 2015 17:28:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 15 12:28:14 2015
Received: from localhost ([127.0.0.1]:57955 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YBoDO-0006o1-Jc
	for submit <at> debbugs.gnu.org; Thu, 15 Jan 2015 12:28:14 -0500
Received: from homie.mail.dreamhost.com ([208.97.132.208]:46543
 helo=homiemail-a2.g.dreamhost.com)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <jidanni@HIDDEN>) id 1YBoDM-0006ns-CW
 for 19605 <at> debbugs.gnu.org; Thu, 15 Jan 2015 12:28:13 -0500
Received: from homiemail-a2.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id 43444280071;
 Thu, 15 Jan 2015 09:28:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=date:from
 :to:cc:subject:message-id:references:mime-version:content-type:
 in-reply-to; s=jidanni.org; bh=0FpTze4/54e6zennRCXSFnXF20Y=; b=N
 Jcf0tswcdv5zNE1O7JMRYsGUV3y53FEN4lB4nzaLkJviwnplWYbgC/L/HqmPBhuH
 zXPQ+B/H9VkHT6LdXG8tazsUIotoqexRogHxYNWfBXM9hp0/yK4NzzBKeq0qauIk
 QFUgcmBf64e4FNcJ2GM6HKsLRsCYqgqLh6PXd82+c0=
Received: from jidanni.org (114-26-47-188.dynamic.hinet.net [114.26.47.188])
 (using TLSv1 with cipher AES128-SHA (128/128 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by homiemail-a2.g.dreamhost.com (Postfix) with ESMTPSA id 05FD0280073;
 Thu, 15 Jan 2015 09:28:10 -0800 (PST)
Date: Fri, 16 Jan 2015 01:28:07 +0800
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: =?iso-8859-1?Q?P=E1draig?= Brady <P@HIDDEN>
Subject: Re: bug#19605: cp -v vs LC_ALL vs. quote marks
Message-ID: <20150115172807.GA10192@HIDDEN>
References: <87oaq02s0g.fsf@HIDDEN> <87k30o2ftd.fsf@HIDDEN>
 <54B7F1B8.5060905@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <54B7F1B8.5060905@HIDDEN>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 19605
Cc: 19605 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

All I know is in xterm I click three times and all of '...' including
the quotes gets copied, which is fine with me. Just keep it all 0x27.




Information forwarded to bug-coreutils@HIDDEN:
bug#19605; Package coreutils. Full text available.

Message received at 19605 <at> debbugs.gnu.org:


Received: (at 19605) by debbugs.gnu.org; 15 Jan 2015 16:58:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 15 11:58:42 2015
Received: from localhost ([127.0.0.1]:57937 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YBnko-0003NB-5f
	for submit <at> debbugs.gnu.org; Thu, 15 Jan 2015 11:58:42 -0500
Received: from mail3.vodafone.ie ([213.233.128.45]:25089)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <P@HIDDEN>) id 1YBnkm-0003Mv-Ei
 for 19605 <at> debbugs.gnu.org; Thu, 15 Jan 2015 11:58:41 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ag4FAHXwt1RtTnDJ/2dsb2JhbABagwaEL8Yzgk8CgRNDAQEBAQF9hAwBAQEDASMPAUYFCwkCDQsCAgUWCwICCQMCAQIBRQYNAQcBAYggDAGhPZxqhWmOHwEBAQcBAQEBHoEhjlgHgmiBQQEElWSDBg2CZoIyg0+IByKDbj6CdAEBAQ
Received: from unknown (HELO localhost.localdomain) ([109.78.112.201])
 by mail3.vodafone.ie with ESMTP; 15 Jan 2015 16:58:32 +0000
Message-ID: <54B7F1B8.5060905@HIDDEN>
Date: Thu, 15 Jan 2015 16:58:32 +0000
From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= <P@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>
Subject: Re: bug#19605: cp -v vs LC_ALL vs. quote marks
References: <87oaq02s0g.fsf@HIDDEN> <87k30o2ftd.fsf@HIDDEN>
In-Reply-To: <87k30o2ftd.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 19605
Cc: 19605 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On 15/01/15 16:01, 積丹尼 Dan Jacobson wrote:
> I'm saying please don't force me to need LC_ALL=C to make the quotes
> U+0027 APOSTROPHE always.
> 
> Long ago there were no quotes.
> 
> Then somebody thought quotes looked pretty, so they added U+0027
> APOSTROPHE always.
> 
> Then somebody else thought `....' looks cooler than '....' and made it
> that way.

That _looked_ better on some old fonts/systems.

> Then somebody thought that might make more work when copy and pasting
> when sending that to the shell, and needing to fix it if three clicks
> got the quotes too, so made it back to U+0027 APOSTROPHE. Good.

Ah you mean double clicking to select the word?
Single quotes are generally excluded from that auto selection,
while ‘locale specific’ quotes can be included which _is_ awkward.

Now that's terminal dependent. I notice xterm is more restrictive
in what it auto selects and will exclude the locale quotes (and . too),
while gnome terminal will include the locale quotes.
That's just a bug in gnome terminal though, as it should
add common quoting chars to its delimiter list.

> Except they forget to fix it back for other locales.

As mentioned before, to have it independent of locales we could
use the "shell-always" quoting style for files.  Note that would have
the small caveat that the quotes would not be included in a double click.

A larger caveat is that it 'shell-always' quoting provides
no protection for the terminal from control chars in a file name.
You can test that out by creating variously named files and using:

  ls -1 --quoting='shell-always' --show-control-chars

Hmm, I wonder could we augment the shell quoting to
add the $'\001' and $'\n' escape formats, which would
both provide the protection and be generally cut and pasteable.

Pádraig.




Information forwarded to bug-coreutils@HIDDEN:
bug#19605; Package coreutils. Full text available.

Message received at 19605 <at> debbugs.gnu.org:


Received: (at 19605) by debbugs.gnu.org; 15 Jan 2015 16:01:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 15 11:01:57 2015
Received: from localhost ([127.0.0.1]:57895 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YBmrt-0001zI-2d
	for submit <at> debbugs.gnu.org; Thu, 15 Jan 2015 11:01:57 -0500
Received: from homie.mail.dreamhost.com ([208.97.132.208]:33987
 helo=homiemail-a1.g.dreamhost.com)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <jidanni@HIDDEN>) id 1YBmrq-0001zA-VE
 for 19605 <at> debbugs.gnu.org; Thu, 15 Jan 2015 11:01:55 -0500
Received: from homiemail-a1.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id 1D6BE34806C;
 Thu, 15 Jan 2015 08:01:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc
 :subject:references:date:message-id:mime-version:content-type;
 s=jidanni.org; bh=x2cLUiK+4k+jt5e5ENNnJhwIIDE=; b=dk0MEGTIUkFYf
 tSqv/fnCgFFKBpZKuzyvGrM+lv0wcv6hi+2tggV6/nmsj4feYqNTYftheMkIuV/i
 ZDGisSbBw9SrG9UI/IdsYvbkaZQyleP6/FYwozA86APjoU0ilkPCd48tXq7rmOe1
 ssMbSKMXATbxnXJJYyTFCRDFIlya34=
Received: from jidanni.org (114-26-47-188.dynamic.hinet.net [114.26.47.188])
 (using TLSv1 with cipher AES128-SHA (128/128 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by homiemail-a1.g.dreamhost.com (Postfix) with ESMTPSA id CC15D348062;
 Thu, 15 Jan 2015 08:01:53 -0800 (PST)
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: =?utf-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Subject: Re: bug#19605: cp -v vs LC_ALL vs. quote marks
References: <87oaq02s0g.fsf@HIDDEN>
Date: Fri, 16 Jan 2015 00:01:50 +0800
Message-ID: <87k30o2ftd.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 19605
Cc: 19605 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

I'm saying please don't force me to need LC_ALL=C to make the quotes
U+0027 APOSTROPHE always.

Long ago there were no quotes.

Then somebody thought quotes looked pretty, so they added U+0027
APOSTROPHE always.

Then somebody else thought `....' looks cooler than '....' and made it
that way.

Then somebody thought that might make more work when copy and pasting
when sending that to the shell, and needing to fix it if three clicks
got the quotes too, so made it back to U+0027 APOSTROPHE. Good.

Except they forget to fix it back for other locales.




Information forwarded to bug-coreutils@HIDDEN:
bug#19605; Package coreutils. Full text available.

Message received at 19605 <at> debbugs.gnu.org:


Received: (at 19605) by debbugs.gnu.org; 15 Jan 2015 12:30:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 15 07:30:36 2015
Received: from localhost ([127.0.0.1]:57393 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YBjZL-0003F6-H4
	for submit <at> debbugs.gnu.org; Thu, 15 Jan 2015 07:30:35 -0500
Received: from mail4.vodafone.ie ([213.233.128.170]:22023)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <P@HIDDEN>) id 1YBjZI-00034U-Kb
 for 19605 <at> debbugs.gnu.org; Thu, 15 Jan 2015 07:30:33 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ag4FABuyt1RtTnDJ/2dsb2JhbABagwaEL8Yygk8CgRVDAQEBAQF9hA0BBSMECwFWCQINCwICBRYLAgIJAwIBAgFFBgEMCAEBiCwBn2WcaoVpjgsBCyCBIY5fgmiBQQEEmGqCc4Iyg0+IByKDbj6CdAEBAQ
Received: from unknown (HELO localhost.localdomain) ([109.78.112.201])
 by mail3.vodafone.ie with ESMTP; 15 Jan 2015 12:30:25 +0000
Message-ID: <54B7B2E1.1050103@HIDDEN>
Date: Thu, 15 Jan 2015 12:30:25 +0000
From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= <P@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>, 
 19605 <at> debbugs.gnu.org
Subject: Re: bug#19605: cp -v vs LC_ALL vs. quote marks
References: <87oaq02s0g.fsf@HIDDEN>
In-Reply-To: <87oaq02s0g.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 19605
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On 15/01/15 11:38, 積丹尼 Dan Jacobson wrote:
> I am glad that these days plain "'" is being used instead of goofy "`'"
> $ LC_ALL=C cp -v /dev/null /tmp/$RANDOM 2>&1
> '/dev/null' -> '/tmp/29920'
> 
> That way one can not worry about copy and pasting them with the mouse.
> 
> The problem is, if I don't use LC_ALL=C then I get the goofy ones, even
> high bit too. Please just use ASCII "'", thanks.
> 
> # find /mnt/usb/thumb/backups/ -mtime -2 -type f -exec cp -av {} /jidanni_backups/ \;
> ‘/mnt/usb/thumb/backups/root_bkp2015-01-14-10-11-29.bz2’ -> ‘/jidanni_backups/root_bkp2015-01-14-10-11-29.bz2’
> 
> cp (GNU coreutils) 8.23
> P.S., I bet other coreutils programs do this too.

What's the exact problem with copy/paste?
Are you suggesting that all quoted files
should use shell quoting so that they can be directly
copy/pasted back to a shell. There is some merit in that alright.

Note above you could pass LC_ALL=C with sh -c ...,
or with a separate xargs process, or just directly to find like:
  LC_ALL=C find ... -exec cp ...

Note also that LC_ALL=C isn't ideal for non English users
as you then lose the localized messages, and it isn't enough
to just set LC_CTYPE=C as that just represents the translated
quote in unibyte.

cheers,
Pádraig

p.s. the above command starts a cp process per file.
It would be much more efficient to do:

  find ... -exec cp -av --target=/jidanni_backups/ {} +




Information forwarded to bug-coreutils@HIDDEN:
bug#19605; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Jan 2015 11:50:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 15 06:50:22 2015
Received: from localhost ([127.0.0.1]:57388 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YBiwP-0001k8-3y
	for submit <at> debbugs.gnu.org; Thu, 15 Jan 2015 06:50:22 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52840)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <jidanni@HIDDEN>) id 1YBiwM-0001jv-HU
 for submit <at> debbugs.gnu.org; Thu, 15 Jan 2015 06:50:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1YBiwG-0000xz-AG
 for submit <at> debbugs.gnu.org; Thu, 15 Jan 2015 06:50:13 -0500
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,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:47751)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1YBiwG-0000xv-6n
 for submit <at> debbugs.gnu.org; Thu, 15 Jan 2015 06:50:12 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54557)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1YBiwF-0000OO-EW
 for bug-coreutils@HIDDEN; Thu, 15 Jan 2015 06:50:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1YBiwC-0000wh-96
 for bug-coreutils@HIDDEN; Thu, 15 Jan 2015 06:50:11 -0500
Received: from homie.mail.dreamhost.com ([208.97.132.208]:59584
 helo=homiemail-a7.g.dreamhost.com)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1YBiwC-0000vw-17
 for bug-coreutils@HIDDEN; Thu, 15 Jan 2015 06:50:08 -0500
Received: from homiemail-a7.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a7.g.dreamhost.com (Postfix) with ESMTP id B2BD525C06A
 for <bug-coreutils@HIDDEN>; Thu, 15 Jan 2015 03:50:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to
 :subject:date:message-id:mime-version:content-type:
 content-transfer-encoding; s=jidanni.org; bh=CPmMHkwdM6uGeXQa8RB
 8qQEgru4=; b=ZaCcXLhKvd9QChfLNTvgVdkZ0TwsHSFHcWi7Fas4nhpExYhMuiU
 j4uGpYlqD4DHts6vyzNHxsuxg+GMPiFOI9IbFeVioR8KeeGEkLc7nPwuPqvzWUeP
 cQGnmZnDSN/6Ad5dRMJ/qI87zsK7XDQZ1l+w1844fzFVDkw8woqPBfg8=
Received: from jidanni.org (114-26-47-188.dynamic.hinet.net [114.26.47.188])
 (using TLSv1 with cipher AES128-SHA (128/128 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by homiemail-a7.g.dreamhost.com (Postfix) with ESMTPSA id 76C5925C062
 for <bug-coreutils@HIDDEN>; Thu, 15 Jan 2015 03:50:06 -0800 (PST)
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: cp -v vs LC_ALL vs. quote marks
Date: Thu, 15 Jan 2015 19:38:23 +0800
Message-ID: <87oaq02s0g.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

I am glad that these days plain "'" is being used instead of goofy "`'"
$ LC_ALL=3DC cp -v /dev/null /tmp/$RANDOM 2>&1
'/dev/null' -> '/tmp/29920'

That way one can not worry about copy and pasting them with the mouse.

The problem is, if I don't use LC_ALL=3DC then I get the goofy ones, even
high bit too. Please just use ASCII "'", thanks.

# find /mnt/usb/thumb/backups/ -mtime -2 -type f -exec cp -av {} /jidanni=
_backups/ \;
=E2=80=98/mnt/usb/thumb/backups/root_bkp2015-01-14-10-11-29.bz2=E2=80=99 =
-> =E2=80=98/jidanni_backups/root_bkp2015-01-14-10-11-29.bz2=E2=80=99

cp (GNU coreutils) 8.23
P.S., I bet other coreutils programs do this too.




Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#19605; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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