-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ls --color=auto rendering directory color as file color #2343
Comments
@evandrocoan could you post the output of |
@evandrocoan Yep, just as I thought. In this screenshot you can see the before and after of me changing the permissions of a dir from 777 to 705. The left console has the directory as it was initially created, the right is after I changed it to 705. |
This is related to the issue:
So the Ubuntu This would mean that for Windows, the |
It's possible. It looks to me like that dir has a
Looking at this and this, I'd say that if you changed all of Change
to
|
Thanks! I changed the colors, now they are correctly displayed. Basically my colors are wrong not displaying correctly the attributes and directories. |
Appears the general underlying issue is WSL not seeing the permissions properly. Here's a fix I found: https://www.turek.dev/posts/fix-wsl-file-permissions/ |
Your Windows build number: (Type
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.15063]
What you're doing and what's happening:
I am doing
ls --color=auto
on a folder on the file system, and I am getting all the files within the same color set to thefi
(files).This is a screenshot take from the Bash for Windows shell:
This are all the files, including the
.bashrc
settings I am using right now:In special, the files colors can be found are:
I am using the fix Bash for Windows colors are unreadable with default terminal theme vscode#7556 (comment), for windows colors, to get xterm colors correctly.
What's wrong / what should be happening instead:
The colors on the Bash for Windows for directories are being ignored. On this screenshot take from the Cygwin Mintty Terminal shell, on the same folder, with the same color settings, we can see the folders being correctly rendered:
Strace of the failing command, if applicable: (If
<cmd>
is failing, then runstrace -o strace.txt -ff <cmd>
, and post the strace.txt output here)I ran
strace -o strace.txt -ff ls
, and this is the output:Related issues:
The text was updated successfully, but these errors were encountered: