eza-community / eza-community/eza
bug: Specified or globbed directories shown with -f
- Dominant language
- Rust
- Stars
- 23.3k
- Forks
- 523
- PR merge metrics
- No merged PRs in 30d
Description
eza version: v0.15.1 [+git]
command line arguments: -lfd *
OS: Linux Mint 21.2
With the `-f` option I would expect no directories to be shown. But if a directory is specified on the command line or if a glob on the command line includes directories, those directories are shown:
```
$ eza -l
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 a
drwxrwxr-x - rsholmes 6 Nov 07:26 ad
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 b
drwxrwxr-x - rsholmes 6 Nov 07:26 bd
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 c
drwxrwxr-x - rsholmes 6 Nov 07:26 cd
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 d
drwxrwxr-x - rsholmes 6 Nov 07:26 dd
$ eza -lf
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 a
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 b
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 c
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 d
$ eza -lfd *
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 a
drwxrwxr-x - rsholmes 6 Nov 07:26 ad
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 b
drwxrwxr-x - rsholmes 6 Nov 07:26 bd
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 c
drwxrwxr-x - rsholmes 6 Nov 07:26 cd
.rw-rw-r-- 0 rsholmes 6 Nov 07:26 d
drwxrwxr-x - rsholmes 6 Nov 07:26 dd
$ eza -lfd ad
drwxrwxr-x - rsholmes 6 Nov 07:26 ad
```
I would expect `eza -lfd *` to give the same result as `eza -lf`, and `eza -lfd ad` to give no output. For instance if I wanted to process a list of all dot files, but not dot directories, I would expect piping `eza -fd .*` to do that.
Contributor guide
Research direction
Reproduce the reported commands, especially `eza -lfd *` and `eza -lfd ad`, then trace the CLI handling for `-f`, `-d`, and explicitly supplied paths. Done means specified or glob-matched directories are excluded with `-f`, matching the behavior of `eza -lf` and producing no output for a directory-only argument.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100