The printf function

Warren Block wblock at wonkity.com
Tue Aug 24 04:32:07 PDT 2004


On Tue, 24 Aug 2004, Gerald S. Stoller wrote:

> I executed the following  printf  (in a  Korn shell  command-line)
> 		printf  't %2$s .\n'  3  55
> and got the following response
> 	printf: illegal format character $
>
> The following is an excerpt from the  man-3  page for  printf .

'man 3 printf' shows the man page for the C library function printf. 
'man 1 printf' shows the man page for the printf *program*, which does 
not appear to support the $ format string.

-Warren Block * Rapid City, South Dakota USA


More information about the freebsd-questions mailing list