GNU bug report logs - #21236
printf version output not working

Previous Next

Package: coreutils;

Reported by: Shawn Welch <swelch <at> saferack.com>

Date: Tue, 11 Aug 2015 15:35:03 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21236 in the body.
You can then email your comments to 21236 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#21236; Package coreutils. (Tue, 11 Aug 2015 15:35:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shawn Welch <swelch <at> saferack.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 11 Aug 2015 15:35:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shawn Welch <swelch <at> saferack.com>
To: bug-coreutils <at> gnu.org
Subject: printf version output not working
Date: Tue, 11 Aug 2015 09:40:39 -0400
[Message part 1 (text/plain, inline)]
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: swelch <at> saferack.com
Office: 843.264.8096 x 1340
Cell: 843.817.9969
Email: swelch <at> saferack.com
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#21236; Package coreutils. (Tue, 11 Aug 2015 17:07:02 GMT) Full text and rfc822 format available.

Message #8 received at 21236 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: 21236 <at> debbugs.gnu.org
Cc: swelch <at> saferack.com
Subject: Re: bug#21236: printf version output not working
Date: Tue, 11 Aug 2015 17:06:12 +0000
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




Information forwarded to bug-coreutils <at> gnu.org:
bug#21236; Package coreutils. (Tue, 11 Aug 2015 17:12:01 GMT) Full text and rfc822 format available.

Message #11 received at 21236 <at> debbugs.gnu.org (full text, mbox):

From: Shawn Welch <swelch <at> saferack.com>
To: Assaf Gordon <assafgordon <at> gmail.com>
Cc: 21236 <at> debbugs.gnu.org
Subject: Re: bug#21236: printf version output not working
Date: Tue, 11 Aug 2015 13:11:23 -0400
[Message part 1 (text/plain, inline)]
You are correct.

Thank you!

*Shawn M Welch*
Lead Web Programmer and Abas Integration Specialist

Lync: swelch <at> saferack.com
Office: 843.264.8096 x 1340
Cell: 843.817.9969
Email: swelch <at> saferack.com

On Tue, Aug 11, 2015 at 1:06 PM, Assaf Gordon <assafgordon <at> gmail.com> 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
>
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 24 Oct 2018 20:52:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 21236 <at> debbugs.gnu.org and Shawn Welch <swelch <at> saferack.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 24 Oct 2018 20:52:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 22 Nov 2018 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 215 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.