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: Paul Eggert
Subject: Re: "printf %d ''" should diagnose the empty string
Date: Tue, 19 Nov 2024 13:36:46 -0800
User-agent: Mozilla Thunderbird

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 ''"?



reply via email to

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