Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Updated bash(?) now files have ' ' around them in terms.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 726
Location: Basking in the Zen glow of Jerry

PostPosted: Thu Feb 18, 2016 2:58 am    Post subject: Updated bash(?) now files have ' ' around them in terms. Reply with quote

Something I updated (probably bash-4.3_p42-r2) within the last couple of days changed my terminal output (aterm, xterm, vt - all the same) so that directory and file names are surrounded with single quote marks. It's kind of annoying. How do I get rid of it?

A directory named My Documents turns into 'My Documents'.
I tried
Code:
touch "foo'bar"
and the output in the term shows
Code:
'foo'\''bar'
.

Someone please, tell me how to make it stop. It's so ugly.

Code:
'A Druids Duel'           Gish                              'Shadowrun Returns'
Amnesia                   GorogoaDemo                       Shank
'And Yet It Moves'        'Gratuitous Space Battles'        Shank2
Anodyne                   Greedcorp                         Shatter
Anomaly                   Grimrock                          'Skulls of the Shogun'
Aquaria                   Hammerfight                       Snapshot
'Atom Zombie Smasher'     Incredipede                       Soma
'A Virus Named Tom'       'Insanely Twisted Shadow Planet'  'Space Chem'
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 1687
Location: Here and Away Again

PostPosted: Thu Feb 18, 2016 3:53 am    Post subject: ><)))°€ Reply with quote

Seems like this here change in the program ls from sys-apps/coreutils: ls: default to --quoting=shell-escape for output to terminal

It is quite the change, and Debian for example seems to have went with reverting it pretty quickly, if I'm reading the resolution here correct-like at all.

There is the -N (--literal) option, but I'm not sure how it differs from the old default...
_________________
Kind Regards,
~ The Noob Unlimited ~

Sore wa sore, kore wa kore.
Back to top
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 726
Location: Basking in the Zen glow of Jerry

PostPosted: Thu Feb 18, 2016 4:53 am    Post subject: Reply with quote

Thank you for pinpointing the problem. The -N option works well enough for me for now.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Feb 18, 2016 11:06 am    Post subject: Re: ><)))°€ Reply with quote

Chiitoo wrote:
It is quite the change, and Debian for example seems to have went with reverting it pretty quickly, if I'm reading the resolution here correct-like at all.

Chiitoo ... hehe, and the "reasons" provided:

Quote:
- It only happens when outputting to terminals

... because consistancy in output is bad?

Quote:
- It disambiguates the output for users

... only if ones idea of "ambiguity" is predicated on a such a "user", and that terminal output should conform to this users idea of what a file name is ... no metacharaters please. So, "unambiguious" here means conform to the predicates of the user interface, specifically the naming converntions developed under the GUI ... and which the "user" is conditioned to expect (having been schooled in that particular mode of thinking re "interface").

Quote:
- Output can be pasted back in the shell for further processing

... yay! TTY has joined the ranks of its big brother, the GUI.

Quote:
- Users can get back to the old format by adding -N to their ls alias

... and the "old format" of discouraging the use of metacharacters in filenames is placed in its proper context ... the predicates of the GUI and its use.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum