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: yamt%mwd.biglobe.ne.jp@localhost (YAMAMOTO Takashi)
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: bin/38004: /bin/sh truncates a message for unobvious reasons
Date: Wed, 13 Feb 2008 19:18:09 +0900 (JST)

 > 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
 
 outputs like the following is not very useful.
 
 YAMAMOTO Takashi
 
 
 obj ===> games/backgammon
 obj ===> bin/dd
 obj ===> gnu/lib/crtstuff4
 obj ===> games/banner
 [1]   Abort trap              /nfs/eos-fs.nfsk...
 --- obj-backgammon ---
 *** [obj-backgammon] Error code 134
 A failure has been detected in another branch of the parallel make
 
 nbmake: stopped in /siro/nbsd/src/bin/chio
 


Home | Main Index | Thread Index | Old Index