Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Jan 2015 13:47:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 196437] New: zless doesn't correctly display uncompressed files
Message-ID:  <bug-196437-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: marquis@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196437-8>