[dev][sbase] seq possible bug

From: Jesse Ogle <jesse.p.ogle_AT_gmail.com>
Date: Thu, 20 Jun 2013 00:24:46 -0400

On master branch for sbase, it seems that on the seq command the
format string (option -f) is having the first character clipped off.
Sample below.

./seq -f "%04g" 3
04g
04g
04g

./seq -f " %04g" 3
0001
0002
0003

Printing the format string in validfmt() shows that it is correct.
Printing after 'fmt = ARGF();' in line 33 shows clipped format. I have
no idea how ARGF works and cannot troubleshoot past that. Thanks.
Received on Thu Jun 20 2013 - 06:24:46 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 20 2013 - 06:36:05 CEST