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



The following reply was made to PR bin/38004; it has been noted by GNATS.

From: David Laight <david%l8s.co.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
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 
wrote:
 > >Number:         38004
 > >Synopsis:       /bin/sh truncates a message for unobvious reasons
 >      
 > >Environment:
 > >Description:
 >      when printing ps->cmd, commandtext() truncates it for
 >      unobvious reasons.
 > >How-To-Repeat:
 >      
 > >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.
 
        David
 
 -- 
 David Laight: david%l8s.co.uk@localhost
 


Home | Main Index | Thread Index | Old Index