[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 ?
- Re: "printf %d ''" should diagnose the empty string, Martin D Kealey, 2025/02/07
- Message not available
- Message not available
- Re: "printf %d ''" should diagnose the empty string, Martin D Kealey, 2025/02/09
- Re: "printf %d ''" should diagnose the empty string, Oğuz, 2025/02/09
- Message not available
- Re: "printf %d ''" should diagnose the empty string, Oğuz, 2025/02/13
- Re: "printf %d ''" should diagnose the empty string, Phi Debian, 2025/02/13
- Re: "printf %d ''" should diagnose the empty string, Oğuz, 2025/02/13
- Re: "printf %d ''" should diagnose the empty string, Phi Debian, 2025/02/13
- Re: "printf %d ''" should diagnose the empty string, Greg Wooledge, 2025/02/13
- Re: "printf %d ''" should diagnose the empty string, Chet Ramey, 2025/02/13