lsd-rs / lsd

The next gen ls command
Apache License 2.0
12.8k stars 413 forks source link

[Bug]: LSD -l permissions incorrect and user/group are both always "?" #1053

Open Tyler799 opened 1 month ago

Tyler799 commented 1 month ago

Version

version

1.1.2

What OS are you seeing the problem on?

MSYS2/UCRT64

installation

pacman -S mingw-w64-ucrt-x86_64-lsd

term

xterm

ls-colors

Empty

What happened?

Here is an example of what my home directory looks like with LS:

/home/tyler.shellberg >ls -al
total 37
drwxr-xr-x 1 tyler.shellberg Domain Users    0 May 22 21:15 .
drwxr-xr-x 1 tyler.shellberg Domain Users    0 Jan 23 15:47 ..
-rw-r--r-- 1 tyler.shellberg Domain Users 2677 May 17 10:33 .bash_history
-rw-r--r-- 1 tyler.shellberg Domain Users   21 Feb  7  2023 .bash_logout
-rw-r--r-- 1 tyler.shellberg Domain Users 1256 Feb  7  2023 .bash_profile
-rw-r--r-- 1 tyler.shellberg Domain Users 5828 Feb  7  2023 .bashrc
drwxr-xr-x 1 tyler.shellberg Domain Users    0 Apr 17 14:15 .cache
drwxr-xr-x 1 tyler.shellberg Domain Users    0 May 15 16:52 .config
drwxr-xr-x 1 tyler.shellberg Domain Users    0 Feb 26 13:26 .dbus-keyrings
-rw-r--r-- 1 tyler.shellberg Domain Users  434 Mar 22 11:29 .gitconfig
-rw-r--r-- 1 tyler.shellberg Domain Users  415 Mar 22 11:27 .gitconfig.bak
drwxr-xr-x 1 tyler.shellberg Domain Users    0 Jan 29 09:21 .gnupg
-rw-r--r-- 1 tyler.shellberg Domain Users   20 May 22 21:15 .lesshst
drwxr-xr-x 1 tyler.shellberg Domain Users    0 Jan 24 08:48 .local
-rw-r--r-- 1 tyler.shellberg Domain Users   29 May 15 16:48 .minttyrc
-rw-r--r-- 1 tyler.shellberg Domain Users 1008 Feb  7  2023 .profile
drwxr-xr-x 1 tyler.shellberg Domain Users    0 May 23 11:28 .ssh

Here is what it looks like with LSD and my current settings:

Permissions User Group  Size        Date Modified             Name
d----       ?    ?        0 B  Wed Apr 17 14:15:44 2024 󰃨 .cache
d----       ?    ?        0 B  Wed May 15 16:52:39 2024  .config
d----       ?    ?      4.0 KB Mon Feb 26 13:26:31 2024  .dbus-keyrings
d----       ?    ?        0 B  Mon Jan 29 09:21:14 2024 󰢬 .gnupg
d----       ?    ?        0 B  Wed Jan 24 08:48:11 2024  .local
d----       ?    ?      4.0 KB Thu May 23 11:28:22 2024 󰢬 .ssh
.a---       ?    ?      2.6 KB Fri May 17 10:33:03 2024 󱆃 .bash_history
.a---       ?    ?       21 B  Tue Feb  7 08:09:29 2023 󱆃 .bash_logout
.a---       ?    ?      1.2 KB Tue Feb  7 08:09:29 2023 󱆃 .bash_profile
.a---       ?    ?      5.7 KB Tue Feb  7 08:09:29 2023 󱆃 .bashrc
.a---       ?    ?      434 B  Fri Mar 22 11:29:31 2024  .gitconfig
.a---       ?    ?      415 B  Fri Mar 22 11:27:27 2024 󰁯 .gitconfig.bak
.a---       ?    ?       20 B  Wed May 22 21:15:44 2024  .lesshst
.a---       ?    ?       29 B  Wed May 15 16:48:59 2024  .minttyrc
.a---       ?    ?     1008 B  Tue Feb  7 08:09:29 2023  .profile

As you can see, both user and group are always "?", and the permissions appears completely wrong.

Here is the contents of my config.yaml:

header: true

sorting:
  dir-grouping: first

What expected?

LSD should output similar information to LS about permissions and user/group.

What else?

I'm using Fish shell, if that matters.