On 2024-11-19 13:05, #!microsuxx wrote:
u can try posix mode if u care
Certainly if Bash is in POSIX mode it should reject "printf %d ''", for the same reason it rejects "printf %d ' '" and "printf %d x" - POSIX requires it to diagnose any argument that isn't a C integer context.
However, I don't see why Bash should differ from POSIX behavior. Bash already diagnoses "printf %d x" and "printf %d ' '"; why should it be silent about "printf %d ''"?