From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 14 13:45:33 2016 Received: (at submit) by debbugs.gnu.org; 14 Aug 2016 17:45:33 +0000 Received: from localhost ([127.0.0.1]:57451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYzTZ-0004sB-By for submit@debbugs.gnu.org; Sun, 14 Aug 2016 13:45:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37115) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYzTX-0004ry-GS for submit@debbugs.gnu.org; Sun, 14 Aug 2016 13:45:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYzTR-0000z6-Em for submit@debbugs.gnu.org; Sun, 14 Aug 2016 13:45:26 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYzTR-0000z1-Bd for submit@debbugs.gnu.org; Sun, 14 Aug 2016 13:45:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYzTP-0006Zt-5V for bug-coreutils@gnu.org; Sun, 14 Aug 2016 13:45:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYzTL-0000yl-VB for bug-coreutils@gnu.org; Sun, 14 Aug 2016 13:45:23 -0400 Received: from smtp1.ms.mff.cuni.cz ([2001:718:1e03:801::4]:58972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYzTL-0000xl-MO for bug-coreutils@gnu.org; Sun, 14 Aug 2016 13:45:19 -0400 Received: from ufal-mail.mff.cuni.cz (ufal-mail.mff.cuni.cz [195.113.20.158]) by smtp1.ms.mff.cuni.cz (8.15.2/8.15.2) with ESMTP id u7EHDYeX046689 for ; Sun, 14 Aug 2016 19:13:36 +0200 (CEST) (envelope-from choroba@matfyz.cz) Received: from localhost (localhost.localdomain [127.0.0.1]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTP id 422C5A8A205A for ; Sun, 14 Aug 2016 19:13:34 +0200 (CEST) Received: from ufal-mail.mff.cuni.cz ([127.0.0.1]) by localhost (ufal-mail.mff.cuni.cz [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id oYV5XO5_VOSK for ; Sun, 14 Aug 2016 19:13:34 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTP id ECDF0A8A205C for ; Sun, 14 Aug 2016 19:13:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at ufal.mff.cuni.cz Received: from ufal-mail.mff.cuni.cz ([127.0.0.1]) by localhost (ufal-mail.mff.cuni.cz [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WQYrxnvCBeE6 for ; Sun, 14 Aug 2016 19:13:33 +0200 (CEST) Received: from primano.pha.netel.cz (unknown [217.30.64.210]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTPSA id A5EDFA8A205A for ; Sun, 14 Aug 2016 19:13:33 +0200 (CEST) Date: Sun, 14 Aug 2016 19:13:33 +0200 (CEST) From: "E. Choroba" X-X-Sender: choroba@still.ms.mff.cuni.cz To: bug-coreutils@gnu.org Subject: ls doesn't quote newlines with -Q properly Message-ID: User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323328-885216091-1471194813=:25337" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -5.0 (-----) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-885216091-1471194813=:25337 Content-Type: text/plain; format=flowed; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Filename containing a newline is not listed in a way reusable by shell=20 regardless of the --quoting-style: $ touch a$'\n'b $ for s in literal shell shell-always c c-maybe escape locale clocale ; d= o ls -Q a?b --quoting-style=3D$s done a?b 'a?b' 'a?b' "a\nb" "a\nb" a\nb =A1a\nb=A2 =A1a\nb=A2 I'd expect something like $'a\nb' (might be bash specific) or 'a b' (i.e. containing the actual newline) or something. Versions: bash 4.2.53(1)-release ls (GNU coreutils) 8.23 system: OpenSUSE 13.2 x86_64 Reference: http://stackoverflow.com/q/38938218/1030675 Ch. --8323328-885216091-1471194813=:25337-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 15 05:04:51 2016 Received: (at 24225-done) by debbugs.gnu.org; 15 Aug 2016 09:04:51 +0000 Received: from localhost ([127.0.0.1]:57876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZDpD-0004h1-0A for submit@debbugs.gnu.org; Mon, 15 Aug 2016 05:04:51 -0400 Received: from mail.magicbluesmoke.com ([82.195.144.49]:39670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZDpB-0004gs-Vk for 24225-done@debbugs.gnu.org; Mon, 15 Aug 2016 05:04:50 -0400 Received: from [192.168.1.80] (unknown [109.76.72.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id B6113243; Mon, 15 Aug 2016 10:04:46 +0100 (IST) Subject: Re: bug#24225: ls doesn't quote newlines with -Q properly To: "E. Choroba" , 24225-done@debbugs.gnu.org References: From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: <57B185AE.9060705@draigBrady.com> Date: Mon, 15 Aug 2016 10:04:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 24225-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: 0.0 (/) On 14/08/16 18:13, E. Choroba wrote: > Filename containing a newline is not listed in a way reusable by shell > regardless of the --quoting-style: There were many cases where the output from ls was unusable. This was fixed since coreutils-8.25 where the new 'shell-escape' quoting style was introduced, and in fact is used by default. $ ls a?b --quoting-style='shell-escape' 'a'$'\n''b' thanks, Pádraig From unknown Mon Aug 11 18:55:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 12 Sep 2016 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator