1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

Change zstdless behavior to align with zless (#2909)

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

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 "$@"