Skip site navigation (1)Skip section navigation (2)


| raw e-mail | index | archive | help

# create a test file
man tcsh | bzip2 > tcsh.bz2
wc tcsh.bz2
     224    1596   56890 tcsh.bz2

# with the -f flag, xz will return the compressed file if the format is
unknown, and show no warnings
xzcat -f tcsh.bz2 | wc
     224    1596   56890

# xzgrep falls back to binary search in bz2 data
/usr/bin/xzgrep -c . tcsh.bz2 ; echo $?
222
0

# without -f flag
xzcat tcsh.bz2 | grep tcsh; echo $?
xzcat: tcsh.bz2: File format not recognized
1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>