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:
@ -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 "$@"
|
||||
|
Reference in New Issue
Block a user