[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/38004: /bin/sh truncates a message for unobvious reasons
The following reply was made to PR bin/38004; it has been noted by GNATS.
From: David Laight <david%l8s.co.uk@localhost>
Subject: Re: bin/38004: /bin/sh truncates a message for unobvious reasons
Date: Tue, 12 Feb 2008 18:33:04 +0000
On Tue, Feb 12, 2008 at 08:20:02AM +0000, yamt%mwd.biglobe.ne.jp@localhost
> >Number: 38004
> >Synopsis: /bin/sh truncates a message for unobvious reasons
> when printing ps->cmd, commandtext() truncates it for
> unobvious reasons.
> +#if 1
> + len = sizeof(ps->cmd);
> if (iflag || mflag || sizeof ps->cmd < 100)
> len = sizeof(ps->cmd);
> len = sizeof(ps->cmd) / 10;
When is this a problem?
IIRC the purpose of the test is to speed up shell scripts - where it
is really pointless regenerating the command line in this form at all.
David Laight: david%l8s.co.uk@localhost
Main Index |
Thread Index |