From: dtrg Date: Sun, 25 Feb 2007 22:07:11 +0000 (+0000) Subject: Applied a patch to support OpenBSD. X-Git-Tag: release-6-0-pre-1~2 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8da0d38b6dc511429e27a3acec39ab3121fe0c85;p=ack.git Applied a patch to support OpenBSD. --- diff --git a/pm b/pm index 58c9ac309..23560e2c6 100755 --- a/pm +++ b/pm @@ -29,7 +29,7 @@ trap "rm -f $GZFILE $CFILE" EXIT extract_section() { sed -e "1,/^XXXXSTART$1/d" "$THISFILE" | ( read size - head -c $size + dd bs=1 count=$size 2> /dev/null ) > $GZFILE cat $GZFILE | cat }