[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#32653: single quotes suddenly appearing in ls displays
From: |
Pádraig Brady |
Subject: |
bug#32653: single quotes suddenly appearing in ls displays |
Date: |
Mon, 10 Sep 2018 22:22:46 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
close 32653
stop
On 06/09/18 16:49, Ethan Furman wrote:
> I recently installed Linux Mint 18, and when I did an "ls -la" (aliased to
> "la") on a directory with hundreds of folders
> that are automatically created by a script, single-quote-marks started
> showing up. I spent three hours verifying that
> my script wasn't at fault, and would have spent more had I not thought to
> google the problem.
>
> Please revert this change, and please please please do not make such changes
> to the defaults in the future.
This has been discussed previously, so closing this.
The reasoning behind the change is summarized at:
https://unix.stackexchange.com/a/258691/37127
Reproducing here:
```
It was introduced in coreutils v8.25, and alignment improved in v8.26
It only happens when outputting to terminals so doesn't break scripts
It disambiguates the output for users for files containing whitespace
It sanitizes output so it is _safe_ to copy and paste
Output is now always _valid_ to copy and paste back to shell
Users can get back to the old format by adding -N to their ls alias
```
thanks,
Pádraig