[Bug 196437] New: zless doesn't correctly display uncompressed files

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 2 13:47:25 UTC 2015


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: freebsd-bugs at FreeBSD.org
          Reporter: marquis at roble.com

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.


More information about the freebsd-bugs mailing list