eza-community / eza-community/eza

bug: `--hyperlink` eats characters when saved in variable

Open
#693 1 comment 0 reactions 0 assignees View on GitHub
area: hyperlinks os: macos type: bug
Dominant language
Rust
Stars
23.3k
Forks
523
PR merge metrics
No merged PRs in 30d

Description

```
eza v0.16.1 [+git] (homebrew)
macOS 14.1.1 (arm)
```

to reproduce:
```bash
# cd into empty directory
touch type.js main.js foobar.css
foo=$(eza --hyperlink) ; echo $foo
```
result: for *some* filenames, part of the filename is gone. Happens mostly to files starting with `t`, for whatever reason, though I have only tried out a few filenames. The problem does not occur when running `eza --hyperlink`.

Tried in WezTerm (screenshot), but also occurs in the macOS terminal (Terminal.app).
![Pasted image 2023-11-28 at 11 50 31](https://github.com/eza-community/eza/assets/73286100/4530843a-8f69-4b8a-b82b-7c5a37b48b41)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.