tech-userlevel archive

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

Re: wc(1) Output and POSIX



    Date:        Tue, 27 Dec 2016 10:52:17 +0530
    From:        Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
    Message-ID:  <CAHwRYJnCSvd4q7+O2nAeGjXT8Gm=6WZxJLfi7Cqx4XAibppFfQ%mail.gmail.com@localhost>

  | Yes, that makes sense for the %7lu, but what about the leading space
  | in the first column?

From posix:

	If both the field width and precision are omitted, the implementation
	may precede, follow, or precede and follow numeric arguments of types
	d, i, and u with <blank> characters;

Since they specify just "%d" we can add whatever blanks we llike.

kre



Home | Main Index | Thread Index | Old Index