xzless.in   xzless.in 
skipping to change at line 49 skipping to change at line 49
if test "${LESSMETACHARS+set}" != set; then if test "${LESSMETACHARS+set}" != set; then
# Work around a bug in less 394 and earlier; # Work around a bug in less 394 and earlier;
# it mishandles the metacharacters '$%=~'. # it mishandles the metacharacters '$%=~'.
space=' ' space=' '
tab=' ' tab=' '
nl=' nl='
' '
LESSMETACHARS="$space$tab$nl'"';*?"()<>[|&^`#\$%=~' LESSMETACHARS="$space$tab$nl'"';*?"()<>[|&^`#\$%=~'
fi fi
if test "$(less -V | { read ver && echo ${ver#less }; })" -ge 429; then if test "$(less -V | { read less ver re && echo ${ver}; })" -ge 429; then
# less 429 or later: LESSOPEN pipe will be used on # less 429 or later: LESSOPEN pipe will be used on
# standard input if $LESSOPEN begins with |-. # standard input if $LESSOPEN begins with |-.
LESSOPEN="|-$xz -cdfq -- %s" LESSOPEN="|-$xz -cdfq -- %s"
else else
LESSOPEN="|$xz -cdfq -- %s" LESSOPEN="|$xz -cdfq -- %s"
fi fi
export LESSMETACHARS LESSOPEN export LESSMETACHARS LESSOPEN
exec less "$@" exec less "$@"
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/