Re: "printf %d ''" should diagnose the empty string
From:
Oğuz
Subject:
Re: "printf %d ''" should diagnose the empty string
Date:
Thu, 13 Feb 2025 08:17:45 +0300
On Thursday, February 13, 2025, Martin D Kealey <martin@kurahaupo.gen.nz>
wrote:
>
> Arguing about printf being an external command (or otherwise not part of
> Bash) is not relevant when I'm specifically talking about Bash extensions
> to the POSIX spec.
>
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.
--
Oğuz