Re: printf(1) does not support argument swapping

2008-12-29 Thread Eric Blake
Eric Blake byu.net> writes: > Thanks for the report. POSIX does not require printf(1) to support > argument swapping: > http://www.opengroup.org/onlinepubs/9699919799/utilities/printf.html > > So this is technically not a bug. However, if you would like to submit a > patch that adds this as an

Re: printf(1) does not support argument swapping

2008-12-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Antonio Bonifati on 12/26/2008 8:37 AM: > 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 pri

printf(1) does not support argument swapping

2008-12-26 Thread Antonio Bonifati
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 forma