NetBSD-Bugs archive
[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
On Tue, Feb 12, 2008 at 06:35:01PM +0000, David Laight wrote:
> > >Fix:
> > +#if 1
> > + len = sizeof(ps->cmd);
> > +#else
> > if (iflag || mflag || sizeof ps->cmd < 100)
> > len = sizeof(ps->cmd);
> > else
> > len = sizeof(ps->cmd) / 10;
> > +#endif
>
> 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.
Shouldn't the proper fix for that to be to either save a copy of the
original command line string, or to only produce the string when it's
needed? Or am I missing something obvious?
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index