[Bug 1915568] [NEW] lessfile is broken when using ~/.lessfilter
Ash Holland
1915568 at bugs.launchpad.net
Fri Feb 12 21:41:31 UTC 2021
Public bug reported:
If ~/.lessfilter exists and is used by lesspipe/lessfile, then lessfile
will make the filename of the temporary file visible in less. The
attached patch fixes this. (The filename is echoed to less after the
subshell exits; trying to do it inside the subshell means it ends up
looking to less like part of the file being viewed.)
To test this, you can place the following file at ~/.lessfilter:
#!/bin/sh
echo foo
exit 0
Then opening any file in less (assuming you have lessfile set up) should
show "foo". The bug is that, currently, it also shows a filename from
somewhere in /tmp.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: less 487-0.1
ProcVersionSignature: Ubuntu 4.15.0-135.139-generic 4.15.18
Uname: Linux 4.15.0-135-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.23
Architecture: amd64
CurrentDesktop: Unity7
Date: Fri Feb 12 21:25:34 2021
Dependencies:
debianutils 4.8.4
gcc-8-base 8.4.0-1ubuntu1~18.04
libc6 2.27-3ubuntu1.4
libgcc1 1:8.4.0-1ubuntu1~18.04
libtinfo5 6.1-1ubuntu1.18.04
InstallationDate: Installed on 2018-08-13 (914 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: less
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: less (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug bionic
** Patch added: "fix-lessfile-with-lessfilter.patch"
https://bugs.launchpad.net/bugs/1915568/+attachment/5463304/+files/fix-lessfile-with-lessfilter.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to less in Ubuntu.
https://bugs.launchpad.net/bugs/1915568
Title:
lessfile is broken when using ~/.lessfilter
Status in less package in Ubuntu:
New
Bug description:
If ~/.lessfilter exists and is used by lesspipe/lessfile, then
lessfile will make the filename of the temporary file visible in less.
The attached patch fixes this. (The filename is echoed to less after
the subshell exits; trying to do it inside the subshell means it ends
up looking to less like part of the file being viewed.)
To test this, you can place the following file at ~/.lessfilter:
#!/bin/sh
echo foo
exit 0
Then opening any file in less (assuming you have lessfile set up)
should show "foo". The bug is that, currently, it also shows a
filename from somewhere in /tmp.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: less 487-0.1
ProcVersionSignature: Ubuntu 4.15.0-135.139-generic 4.15.18
Uname: Linux 4.15.0-135-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.23
Architecture: amd64
CurrentDesktop: Unity7
Date: Fri Feb 12 21:25:34 2021
Dependencies:
debianutils 4.8.4
gcc-8-base 8.4.0-1ubuntu1~18.04
libc6 2.27-3ubuntu1.4
libgcc1 1:8.4.0-1ubuntu1~18.04
libtinfo5 6.1-1ubuntu1.18.04
InstallationDate: Installed on 2018-08-13 (914 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: less
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/less/+bug/1915568/+subscriptions
More information about the foundations-bugs
mailing list