Bug 15011

Summary: Can't see the first line of a file with a long path with less
Product: Busybox Reporter: Yuri Kanivetsky <yuri.kanivetsky>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.35.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: a screenshot of the way less looks in this case

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