bug-coreutils
[Top][All Lists]
Advanced

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

printf(1) does not support argument swapping


From: Antonio Bonifati
Subject: printf(1) does not support argument swapping
Date: Fri, 26 Dec 2008 16:37:15 +0100 (CET)
User-agent: SquirrelMail/1.4.8

Hi,
I'm using coreutils 6.12 and bash 3.2.048. I notice command line versions
of printf(1), both external (/usr/bin/printf) and internal (bash command)
do not support argument swapping as printf(3) does.

Reproduce with:

$ printf '%2$s is %1$u years old' 31 Antonio
bash: printf: `$': invalid format character

or

$ /usr/bin/printf '%2$s is %1$u years old' 31 Antonio
/usr/bin/printf: %2$: invalid conversion specification

This issue is not covered by the FAQ at
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html, therefore I
think it's a bug, isn't it?

thanks for help
-- 
Antonio Bonifati
http://monitor.deis.unical.it/ant
gtalk: address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]