On Mon, Aug 10, 2009 at 02:35:55AM +0200, Piotr Engelking wrote:
...
> functionality introduced in less 429-1 and I am not sure how to sanely
> express such a dependency, given that gzip merely suggests less. Any
> suggestions?

- tell about it the docs/man
- patch zless like eg:

! #!/bin/sh
! PATH="/usr/bin:$PATH"; export PATH
! v=`less --version`
! v=${v#* }
! v=${v%%[ [:cntrl:]]*}
! if [ $v -lt 429 ]; then
!   LESSOPEN="|gzip -cdfq %s"; export LESSOPEN
! else
!   LESSOPEN="|-gzip -cdfq %s"; export LESSOPEN
! fi                                           
! exec less "$@"

-- 
paolo



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to