[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: user/4213



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

From: Otto Moerbeek <otto_(_at_)_drijf_(_dot_)_net>
To: gnats_(_at_)_openbsd_(_dot_)_org
Cc: andreas_(_dot_)_kahari_(_at_)_gmail_(_dot_)_com
Subject: Re: user/4213
Date: Thu, 9 Mar 2006 15:17:18 +0100 (CET)

 Attach to PR so it doesn't get lost.
 
 	-Otto
 
 
 ---------- Forwarded message ----------
 Date: Thu, 9 Mar 2006 16:50:16 +0300
 From: Alexey Dobriyan <adobriyan_(_at_)_gmail_(_dot_)_com>
 To: bugs_(_at_)_openbsd_(_dot_)_org
 Subject: Re: user/4213
 
 Comments?
 
 Index: bin/ksh//var.c
 ===================================================================
 RCS file: /cvs/src/bin/ksh/var.c,v
 retrieving revision 1.28
 diff -u -p -r1.28 var.c
 --- bin/ksh//var.c	2005/12/11 20:31:21	1.28
 +++ bin/ksh//var.c	2006/03/09 13:41:47
 @@ -430,6 +430,9 @@ getint(struct tbl *vp, long int *nump, b
  		if (*s == 'x' || *s == 'X') {
  			s++;
  			base = 16;
 +		} else if (vp->flag & ZEROFIL) {
 +			while (*s == '0')
 +				s++;
  		} else
  			base = 8;
  		have_base++;