Change zstdless behavior to align with zless (#2909)

* Change zstdless behavior to align with zless
This commit is contained in:
binhdvo authored and GitHub committed 2022-01-21 19:57:19 -05:00
1 parent b27356fd27
commit 17017ac8db
2 files changed
+22 -1

No files matched your search

+7 -1
View File
@@ -1,2 +1,8 @@
#!/bin/sh
zstdcat "$@" | less
zstd=${ZSTD:-zstd}
# TODO: Address quirks and bugs tied to old versions of less, provide a mechanism to pass flags directly to zstd
export LESSOPEN="|-${zstd} -cdfq %s"
exec less "$@"