reassign 248302 less
thanks

In response to bug #124097, the zless script now looks like:

  #!/bin/sh
  PATH="BINDIR:$PATH"; export PATH
  LESSOPEN="|gzip -cdfq %s"; export LESSOPEN
  exec less "$@"

So the mis-handling of a compressed file handed to zless on stdin
appears to indicate that less is doing something unexpected with the
value of %s and/or not using LESSOPEN at all in this case.  If it called
gzip with %s set to -, things would work, since this works fine:

        cat frog.gz | gzip -cdfq -

I don't see any reasonable way to satisfy both 124097 and 248302 with a
change in the zless wrapper.  If you do, feel free to provide a patch.
Having less do the right thing in the presence of this LESSOPEN content
seems like the best solution.

Bdale



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to