GNU bug report logs - #45890
Printf bug GNU coreutils 8.30/8.32

Previous Next

Package: coreutils;

Reported by: Andrea Dari <andreadari <at> protonmail.com>

Date: Fri, 15 Jan 2021 12:11:01 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 45890 in the body.
You can then email your comments to 45890 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#45890; Package coreutils. (Fri, 15 Jan 2021 12:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrea Dari <andreadari <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 15 Jan 2021 12:11:01 GMT) Full text and rfc822 format available.

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

From: Andrea Dari <andreadari <at> protonmail.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: Printf bug GNU coreutils 8.30/8.32
Date: Fri, 15 Jan 2021 11:08:58 +0000
[Message part 1 (text/plain, inline)]
Hello,

I'm using GNU coreutils 8.30, I found that the printf tool is broken while coding a shell script.

andrea <at> Workstation:~$ printf --version
bash: printf: --: invalid option
printf: usage: printf [-v var] format [arguments]

I tried with coreutils 8.32 too with the same error.

PRINTF(1) man page reports the option valid:

NAME
printf - format and print data

SYNOPSIS
printf FORMAT [ARGUMENT]...
printf OPTION

DESCRIPTION
Print ARGUMENT(s) according to FORMAT, or execute according to OPTION:

--help display this help and exit

--version
output version information and exit
...

the option --help works.

I have another issue with printf, I wanted to print a string that starts with "-" and printf parse it like an option:

andrea <at> Workstation:~$ printf "->"
bash: printf: ->: invalid option
printf: usage: printf [-v var] format [arguments]

I'm doing something wrong?

Best Regards,

Andrea Dari
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#45890; Package coreutils. (Fri, 15 Jan 2021 12:23:02 GMT) Full text and rfc822 format available.

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

From: Andrea Dari <andreadari <at> protonmail.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: Re: Printf bug GNU coreutils 8.30/8.32
Date: Fri, 15 Jan 2021 12:09:19 +0000
[Message part 1 (text/plain, inline)]
I'm sorry, I found the answer in the FAQ.
So i'ts resolved.

Thanks
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, January 15, 2021 12:08 PM, Andrea Dari <andreadari <at> protonmail.com> wrote:

> Hello,
>
> I'm using GNU coreutils 8.30, I found that the printf tool is broken while coding a shell script.
>
> andrea <at> Workstation:~$ printf --version
> bash: printf: --: invalid option
> printf: usage: printf [-v var] format [arguments]
>
> I tried with coreutils 8.32 too with the same error.
>
> PRINTF(1) man page reports the option valid:
>
> NAME
> printf - format and print data
>
> SYNOPSIS
> printf FORMAT [ARGUMENT]...
> printf OPTION
>
> DESCRIPTION
> Print ARGUMENT(s) according to FORMAT, or execute according to OPTION:
>
> --help display this help and exit
>
> --version
> output version information and exit
> ...
>
> the option --help works.
>
> I have another issue with printf, I wanted to print a string that starts with "-" and printf parse it like an option:
>
> andrea <at> Workstation:~$ printf "->"
> bash: printf: ->: invalid option
> printf: usage: printf [-v var] format [arguments]
>
> I'm doing something wrong?
>
> Best Regards,
>
> Andrea Dari
[Message part 2 (text/html, inline)]

bug closed, send any further explanations to 45890 <at> debbugs.gnu.org and Andrea Dari <andreadari <at> protonmail.com> Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Fri, 15 Jan 2021 19:49:01 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Sat, 16 Jan 2021 14:11:01 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. (Sun, 14 Feb 2021 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 65 days ago.

Previous Next


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