From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Alexander Stein Date: Tue, 01 Apr 2014 15:07:19 +0200 Message-ID: <16825117.7fFJm0Hm9F@ws-stein> In-Reply-To: <20140401123030.GC29751@pengutronix.de> References: <2600638.TXFjk7YaMQ@ws-stein> <5060757.6ak7jiQ6Yl@ws-stein> <20140401123030.GC29751@pengutronix.de> MIME-Version: 1.0 Subject: Re: [ptxdist] git ptx-patches fails Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Uwe =?ISO-8859-1?Q?Kleine=2DK=F6nig?= Cc: Michael Olbrich , ptxdist@pengutronix.de Hello Uwe, On Tuesday 01 April 2014 14:30:30, Uwe Kleine-K=F6nig wrote: > > I don't think this is related to man (what's man-db BTW?) at all. > man-db is the package that provides /usr/bin/man on Debian. Also man-db > from Debian unstable (i.e. 2.6.6) is unaffected. > = > > I think the versions of cat and grep behave differently. I have > At least my grep also closes its input with -q and makes cat unhappy: > = > $ { seq 1 2000 | cat; echo >&2 $?; } | grep -q 1 = > 141 > $ { seq 1 2000 | cat; echo >&2 $?; } | grep 1 > /dev/null > 0 Both commands work well here: $ { seq 1 2000 | cat; echo >&2 $?; } | grep -q 1 = 0 $ { seq 1 2000 | cat; echo >&2 $?; } | grep 1 > /dev/null 0 > So I still think it's a man problem. Reading the output of > = > strace -o /tmp/tralala man git-format-patch | grep -q -e --notes > = > "my" man doesn't use system to render the manpage. At least it doesn't > do any execvp and it opens /usr/share/man/man1/git-format-patch.1.gz > itself. You might be missing the -f option? My strace shows several execve. One of = them is > execve("/bin/sh", ["sh", "-c", "/bin/bzip2 -c -d /usr/share/man/"...], [/= * 120 vars */]) =3D 0 > So again, what is your man version? > = > > installed grep-2.16 and coreutils-8.21 (current Gentoo stable > > versions). > For completeness although I think its proven to be unrelated: > grep 2.12-2 + coreutils 8.13-3.5 (i.e. Debian stable) I have man-1.6g Best regards, Alexander -- = Dipl.-Inf. Alexander Stein SYS TEC electronic GmbH Am Windrad 2 08468 Heinsdorfergrund Tel.: 03765 38600-1156 Fax: 03765 38600-4100 Email: alexander.stein@systec-electronic.com Website: www.systec-electronic.com = Managing Director: Dipl.-Phys. Siegmar Schmidt Commercial registry: Amtsgericht Chemnitz, HRB 28082 -- = ptxdist mailing list ptxdist@pengutronix.de