GNU bug report logs - #24225
ls doesn't quote newlines with -Q properly

Previous Next

Package: coreutils;

Reported by: "E. Choroba" <choroba <at> matfyz.cz>

Date: Sun, 14 Aug 2016 17:46:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 24225-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: "E. Choroba" <choroba <at> matfyz.cz>, 24225-done <at> debbugs.gnu.org
Subject: Re: bug#24225: ls doesn't quote newlines with -Q properly
Date: Mon, 15 Aug 2016 10:04:46 +0100
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




This bug report was last modified 8 years and 334 days ago.

Previous Next


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