GNU bug report logs -
#41075
Changes to 'ls' output
Previous Next
Reported by: Chris Elvidge <celvidge001 <at> gmail.com>
Date: Mon, 4 May 2020 12:34:01 UTC
Severity: normal
Tags: notabug
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41075 in the body.
You can then email your comments to 41075 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#41075
; Package
coreutils
.
(Mon, 04 May 2020 12:34:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Chris Elvidge <celvidge001 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Mon, 04 May 2020 12:34:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I have noticed that the output of ls seems to have changed from v8.25 to
v8.32 where there is an apostrophe in the filename (sometimes); change
from " surrounding to ' surrounding and '\'' replacing '. When output is
piped through xxd, it is the same in both versions. I have 8.32
installed in ~/bin/. Any ideas?
$ bash --version
GNU bash, version 5.0.11(1)-release (i686-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[0] slack142!chris:(pts/2):Sun 03 May 2020 02:36 pm BST:/home/chris/bin
$ /usr/bin/ls --version
ls (GNU coreutils) 8.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
[0] slack142!chris:(pts/2):Sun 03 May 2020 01:59 pm BST:/home/chris/bin
$ /usr/bin/ls /media/sf_Music/W.A.S.P\ -\ Greatest\ Hits/*Don*
/media/sf_Music/W.A.S.P - Greatest Hits/08 - I Don't Need No Doctor.m4a
/media/sf_Music/W.A.S.P - Greatest Hits/10 - Don't Cry (Just Suck).m4a
[0] slack142!chris:(pts/2):Sun 03 May 2020 01:59 pm BST:/home/chris/bin
$ ~/bin/ls --version
ls (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
[0] slack142!chris:(pts/2):Sun 03 May 2020 01:58 pm BST:/home/chris/bin
$ ~/bin/ls /media/sf_Music/W.A.S.P\ -\ Greatest\ Hits/*Don*
"/media/sf_Music/W.A.S.P - Greatest Hits/08 - I Don't Need No Doctor.m4a"
'/media/sf_Music/W.A.S.P - Greatest Hits/10 - Don'\''t Cry (Just Suck).m4a'
[0] slack142!chris:(pts/2):Sun 03 May 2020 01:59 pm BST:/home/chris/bin
--
Chris Elvidge
5 Ebor Park, Appleton Roebuck, York. YO23 7DZ.
Tel (Mob): +447443472958 mailto:celvidge <at> outlook.com
Calle Padre Raimundo Codesal 1, Vélez-Málaga, 29700, España
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#41075
; Package
coreutils
.
(Mon, 04 May 2020 15:15:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 41075 <at> debbugs.gnu.org (full text, mbox):
tag 41075 notabug
close 41075
stop
On 04/05/2020 10:43, Chris Elvidge wrote:
> I have noticed that the output of ls seems to have changed from v8.25 to
> v8.32 where there is an apostrophe in the filename (sometimes); change
> from " surrounding to ' surrounding and '\'' replacing '. When output is
> piped through xxd, it is the same in both versions. I have 8.32
> installed in ~/bin/. Any ideas?
This is due to new quoting functionality which is discussed at:
https://www.gnu.org/software/coreutils/quotes.html
As to your particular observation,
when there are only single quotes, then we'll change
to using double quotes to simplify the quoting.
Once there are other problematic characters,
we switch to quoting with single quotes,
as shown in these examples:
$ ls -1
"just'single"
'single'\''and(brackets)'
Note quoting is disabled when output is not to a terminal.
$ ls -1 | cat
just'single
single'and(brackets)
You can disable this quoting behavior if you prefer, by adding '-N' to your ls alias.
thanks,
Pádraig
Added tag(s) notabug.
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Mon, 04 May 2020 15:15:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
41075 <at> debbugs.gnu.org and Chris Elvidge <celvidge001 <at> gmail.com>
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Mon, 04 May 2020 15:15:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 02 Jun 2020 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 74 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.