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: Phi Debian
Subject: Re: "printf %d ''" should diagnose the empty string
Date: Sat, 8 Feb 2025 10:09:30 +0100

Hi,

My personal vote is for no printf warning on bad format of %fmt args, but
other may argue against that. This is no big deal because I can always do
in my scripts
alias printf='printf 2>/dev/null'

That being said if warnings are printed I suppose they must be accurate ?

I don't really get this one

$ echo $BASH_VERSION
5.3.0(4)-beta
$ echo $((4+2#1))
5
$ printf '%d\n' 2#1
bash: printf: 2#1: invalid number
2

Why 2#1 is invalid ?


reply via email to

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