Skip to content

ls -s other-directory wrong colors for directories #15085

Open
@ComputerDruid

Description

@ComputerDruid

Describe the bug

when using ls -s to list the contents of other directories, the colors are wrong for subdirectories

How to reproduce

> mkdir /tmp/a/b /tmp/b/a
> touch /tmp/a/a /tmp/b/b
> cd /tmp/b
> ls -s .
> ls -s ../a

Image

Expected behavior

When running ls -s ../a I expected the directory (b) to be colored blue, and the file (b) to be colored white, but the reverse was true.

Configuration

version | transpose key value | to md --pretty

key value
version 0.102.0
major 0
minor 102
patch 0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.82.0 (f6e511eec 2024-10-15)
cargo_version cargo 1.82.0 (8f40fc59f 2024-08-21)
build_time 2025-02-10 15:06:05 -08:00
build_rust_channel release
allocator mimalloc
features default, sqlite, trash
installed_plugins

Metadata

Metadata

Assignees

No one assigned

    Labels

    file-systemRelated to commands and core nushell behavior around the file systemneeds-triageAn issue that hasn't had any proper lookpipeline-metadataAdditional information passed along that is not directly attached to the values (e.g. LSCOLORS)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions