Re: user/4213

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: user/4213

Alexey Dobriyan-2
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++;

Reply | Threaded
Open this post in threaded view
|

Re: user/4213

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

From: Otto Moerbeek <[hidden email]>
To: [hidden email]
Cc: [hidden email]
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 <[hidden email]>
 To: [hidden email]
 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++;

Reply | Threaded
Open this post in threaded view
|

Re: user/4213

Alexey Dobriyan-2
In reply to this post by Alexey Dobriyan-2
The following reply was made to PR user/4213; it has been noted by GNATS.

From: Alexey Dobriyan <[hidden email]>
To: [hidden email]
Cc:  
Subject: Re: user/4213
Date: Thu, 9 Mar 2006 21:11:13 +0300

 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++;

Reply | Threaded
Open this post in threaded view
|

Re: user/4213

Otto Moerbeek-2
In reply to this post by Alexey Dobriyan-2
Synopsis: Evaluation of zero-filled variables as octal numbers in ksh

State-Changed-From-To: open->closed
State-Changed-By: otto
State-Changed-When: Mon Mar 13 01:21:54 MST 2006
State-Changed-Why:
fix committed; thanks a lot