Bug 15011 - Can't see the first line of a file with a long path with less
Summary: Can't see the first line of a file with a long path with less
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.35.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-22 10:02 UTC by Yuri Kanivetsky
Modified: 2022-09-22 10:04 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
a screenshot of the way less looks in this case (3.66 KB, image/png)
2022-09-22 10:02 UTC, Yuri Kanivetsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Kanivetsky 2022-09-22 10:02:49 UTC
Created attachment 9361 [details]
a screenshot of the way less looks in this case

$ docker run --rm -it alpine:3.16
$ mkdir -p some/looooooooooooooooooooooooooooooooooong
$ echo test > some/looooooooooooooooooooooooooooooooooong/path
$ less some/looooooooooooooooooooooooooooooooooong/path

Supposedly the path should be truncated in some way.

Encountered while inspecting docker files, e.g. /var/lib/registry/docker/registry/v2/repositories/i1/_layers/sha256/ca59306b586e89d56b5aa314ed33f922db000fd93a536514fcc2655a0d23c736/link.
Comment 1 Yuri Kanivetsky 2022-09-22 10:04:12 UTC
Actually, here's an easier way to see the attached screenshot:

https://i.imgur.com/KM6vUaC.png