help with pipes

Robert Connolly robert at
Sat Feb 21 18:13:19 PST 2009

Hello. As mentioned before, I have a problem with:
bzcat ../loop-AES-v3.2e-20090112.diff.bz2 | patch -p1 &&

The && is useless because of the |. I think the && is using the return value 
from bzcat, and not from patch. Redirection would work, except that the patch 
is bzip2 compressed. For example:
patch -p1 < ../loop-AES-v3.2e-20090112.diff
works, but
patch -p1 < $(bzcat ../loop-AES-v3.2e-20090112.diff.bz2)
does not (ambiguous redirect).

Is there another way, aside from decompressing the patch in the sources 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <>

More information about the hlfs-dev mailing list