bug-bash
[Top][All Lists]
Advanced

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

Re: "printf %d ''" should diagnose the empty string


From: Chet Ramey
Subject: Re: "printf %d ''" should diagnose the empty string
Date: Thu, 13 Feb 2025 17:42:23 -0500
User-agent: Mozilla Thunderbird

On 2/13/25 12:17 AM, Oğuz wrote:

Changes made to built-in printf have to be adopted by GNU printf, otherwise
the user will have two flavors of printf on the same system by the same
name. `-v varname' is irrelevant because it's obvious an external command
can't change the value of a shell variable.

There already are differences: bash has extensions and there are different
things that generate warnings. However, in this case, bash-5.3-beta and
coreutils printf both warn about an empty string argument.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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