Date: Sat, 8 Feb 2025 10:09:30 +0100 From: Phi Debian <phi.deb...@gmail.com> Message-ID: <cajor74iubbolbjh_tkiyzrdqxnzzph9jdc+wgch5ztqqzzp...@mail.gmail.com>
| Why 2#1 is invalid ? It isn't a valid form for a C constant. bash allows that kind of thing in its arithmetic contexts, but this is not one. You did notice that printf printed '2' not the bash arith value, which would be 1, right? That's a reason for seeing the warning messages, when the format is incorrect, the value produced isn't always what you'd hope it might be. kre