bug#21236: printf version output not working
The printf man 1 page says that it has a --version switch to output version but it fails and exits 1. GNU coreutils 8.12.197-032bb Linux crunchbang 3.2.0-4-686-pae #1 SMP Debian 3.2.57-3+deb7u1 i686 GNU/Linux *Shawn M Welch* Lead Web Programmer and Abas Integration Specialist Lync: swe...@saferack.com Office: 843.264.8096 x 1340 Cell: 843.817.9969 Email: swe...@saferack.com
bug#21236: printf version output not working
tag 21236 notabug close 21236 stop Hello, On Tue, Aug 11, 2015 at 09:40:39AM -0400, Shawn Welch wrote: The printf man 1 page says that it has a --version switch to output version but it fails and exits 1. It is likely that you are seeing the shell's built in "printf" instead of coreutils' printf. Test with the following: $ type printf printf is a shell builtin Then compare: $ printf --version bash: printf: --: invalid option printf: usage: printf [-v var] format [arguments] $ env printf --version | head -n1 printf (GNU coreutils) 8.23.170-02f67 To use the non built-in printf, use 'env' (or specify a full path such as /usr/bin/printf, though that is less portable). regards, - assaf
bug#21236: printf version output not working
You are correct. Thank you! *Shawn M Welch* Lead Web Programmer and Abas Integration Specialist Lync: swe...@saferack.com Office: 843.264.8096 x 1340 Cell: 843.817.9969 Email: swe...@saferack.com On Tue, Aug 11, 2015 at 1:06 PM, Assaf Gordon wrote: > tag 21236 notabug > close 21236 > stop > > Hello, > > On Tue, Aug 11, 2015 at 09:40:39AM -0400, Shawn Welch wrote: > >> The printf man 1 page says that it has a --version switch to output >> version >> but it fails and exits 1. >> > > It is likely that you are seeing the shell's built in "printf" instead of > coreutils' printf. > > Test with the following: > > $ type printf > printf is a shell builtin > > Then compare: > > $ printf --version > bash: printf: --: invalid option > printf: usage: printf [-v var] format [arguments] > > $ env printf --version | head -n1 > printf (GNU coreutils) 8.23.170-02f67 > > To use the non built-in printf, use 'env' (or specify a full path such as > /usr/bin/printf, though that is less portable). > > regards, > - assaf >