mishandles $%=~ in file names. Problem reported by
Sami Liedes in <http://bugs.debian.org/383358>.
2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
+ * zless.in: Work around a bug in less 394 and earlier; it
+ mishandles $%=~ in file names. Problem reported by
+ Sami Liedes in <http://bugs.debian.org/383358>.
+
* doc/gzip.texi: Swap order of dircategory entries, to pacify
Debian install-info 1.10.28. This should fix
<http://bugs.debian.org/404048>.
--version) exec echo "$version";;
esac
+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 "$@"