Gentoo Archives: gentoo-user

From: Daniel Quinn <gentoo@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] How to stop ls from quoting output
Date: Tue, 03 May 2016 17:08:15
Message-Id: 5728DAEC.90307@danielquinn.org
1 Some time ago after an update |ls| started returning output that looked
2 like this:
3
4 |8hOk25T.jpg 'Janeway Wallpaper-iPhone.png' 'Screenshot from 2016-04-06
5 16-15-15.png' microsoft.png 'Away mission Wallpaper-iPhone.png'
6 'Screenshot from 2016-03-18 14-29-06.png' 'Screenshot from 2016-04-07
7 11-29-02.png' gcal.png |
8
9 Note that some of the files have a single quote (‘) surrounding them,
10 and others don’t. I understand that this makes things easier to do stuff
11 like
12
13 |for f in $(ls /path/to/whatever); do something; fi |
14
15 But since I do that a lot less than I just do this:
16
17 |ls -l |
18
19 I’d like to revert to the old way so my eye isn’t jumping left & right
20 all the time.
21
22 I see that I can just write an alias:
23
24 |alias ls="ls --quoting-style=literal" |
25
26 But I’d hate to do that if the default is “literal” and there’s some
27 config installed somewhere that’s changing this. Does anyone have some
28 information regarding whether this is a new default upstream or if a
29 Gentoo package was somehow modified to do this?
30
31

Replies

Subject Author
Re: [gentoo-user] How to stop ls from quoting output parazyd <parazyd@××××.org>
[gentoo-user] Re: How to stop ls from quoting output Nikos Chantziaras <realnc@×××××.com>