blob: a5d4ad3eb615f0e2f0b723a10fdadd7e75f01841 [file] [edit]
#!/bin/sh
set -e
println "+ good path"
zstdless file.zst
println "+ pass parameters"
zstdless -N file.zst # This parameter does not produce line #s when piped, but still serves to test that the flag went to less and not zstd
println "+ file name starting with -"
cp file.zst ./-file.zst
zstdless -- -file.zst
println "+ standard input"
zstdless < file.zst
println "+ bad path"
zstdless bad.zst >&2