Re: "printf %d ''" should diagnose the empty string
From:
Greg Wooledge
Subject:
Re: "printf %d ''" should diagnose the empty string
Date:
Mon, 10 Feb 2025 19:14:15 -0500
User-agent:
Mutt/1.10.1 (2018-07-13)
On Mon, Feb 10, 2025 at 23:13:33 +0100, Phi Debian wrote:
> 029 is not a number
Many people would disagree. Of course, it depends on the needs of the
script that's being written -- that's why the wiki page offers so many
different answers.
In my experience, it's pretty rare for a script to *want* to treat
zero-padded numeric input as octal.