Skip to content

ls: fix double quoting when color is enabled#3590

Merged
sylvestre merged 1 commit intouutils:mainfrom
tertsdiepraam:ls-fix-double-quoting
Jun 5, 2022
Merged

ls: fix double quoting when color is enabled#3590
sylvestre merged 1 commit intouutils:mainfrom
tertsdiepraam:ls-fix-double-quoting

Conversation

@tertsdiepraam
Copy link
Collaborator

When color was enabled the escape_name function was called twice which led to names like hello world being displayed as "'hello world'".

This double quoting also led to an incorrect calculation of the width of the name, which is now also fixed.

Fixes #3584

@tertsdiepraam tertsdiepraam force-pushed the ls-fix-double-quoting branch from ca957df to eb23a9c Compare June 2, 2022 21:59
When color was enabled the escape_name function was called twice which led to names like `hello world` being displayed as `"'hello world'".
@tertsdiepraam tertsdiepraam force-pushed the ls-fix-double-quoting branch from eb23a9c to 626ed43 Compare June 2, 2022 22:30
@sylvestre sylvestre merged commit 10eee9c into uutils:main Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ls: " is not taken in consideration when building table

2 participants