Skip to content

ls: gnu test case quote-align compatibility #6554

@matrixhead

Description

@matrixhead

This gnu test checks if ls properly aligns the text when it is quoted. However, there was nothing wrong with uu-ls's alignment. The problem was that our ls wasn't quoting the directory name that appears in recursive mode under certain conditions.
for example:

# We create two folders, one with a ':' in it and one without.
mkdir dir:name dirname2
# Now we run gnu-ls with qouting enabled.
ls -R --quoting=shell-escape

this would give us

.:
dir:name  dirname2

'./dir:name':

./dirname2:

Notice there are quotes around dirname with ':' in it,
but if we run uu-ls with the same arguments that would give us.

.:
dir:name  dirname2

./dir:name:

./dirname2:

Notice there are no quotes around dirname with ':' in it.
They probably do this so that the user can distinguish the column from the directory name and the one from the ls prints

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions