freebsd-dev/usr.bin/printf
Pedro F. Giffuni b0620803d5 Add parameterized position handling to printf(1).
Add a new %n$ option to change the order of the parameters as
done in the ksh93 builtin printf (among others).

For example:
%printf '%2$1d %1$s\n' one 2 three 4
2 one
4 three

The feature was written by Garret D'Amore under a
BSD license for Nexenta/illumos.

Reference:
http://garrett.damore.org/2010/10/new-implementation-of-printf.html

PR:		bin/152934
Obtained from:	Illumos
MFC after:	2 weeks
2014-04-21 22:47:18 +00:00
..
tests Migrate most of tools/regression/usr.bin/ to the new tests layout. 2014-03-16 08:04:06 +00:00
Makefile Migrate most of tools/regression/usr.bin/ to the new tests layout. 2014-03-16 08:04:06 +00:00
printf.1 Add parameterized position handling to printf(1). 2014-04-21 22:47:18 +00:00
printf.c Add parameterized position handling to printf(1). 2014-04-21 22:47:18 +00:00