https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196437
Bug ID: 196437
Summary: zless doesn't correctly display uncompressed files
Product: Base System
Version: 9.3-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
The current FreeBSD /usr/bin/zless:
export LESSOPEN="||/usr/bin/lesspipe.sh %s"
exec /usr/bin/less "$@"
displays a blank page when attempting to read a file that is not compressed.
GNU versions:
if test "${LESSMETACHARS+set}" != set; then
# Work around a bug in less 394 and earlier;
# it mishandles the metacharacters '$%=~'.
space=' '
tab=' '
newline='
'
LESSMETACHARS="$space$tab$newline'"';*?"()<>[|&^`#\$%=~'
export LESSMETACHARS
fi
LESSOPEN="|-gzip -cdfq -- %s"; export LESSOPEN
exec less "$@"
work as expected.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"