Re: [bug #66460] A documentation correction regarding an array nameref???

2024-11-20 Thread Wiley Young
"The nameref attribute cannot be applied to array variables." Some thoughts on English language Perhaps "attribute" could be more explicitly defined? ...as something like, 'a characteristic [ given to | assigned to | applied to | associated with | defining a ] parameter (or a parameter's util

Re: "printf %d ''" should diagnose the empty string

2024-11-20 Thread Paul Eggert
On 2024-11-20 07:31, Martin D Kealey wrote: From a semantic perspective, because "" doesn't contain any non-digits. Under that argument, "printf %d -" shouldn't report an error either, because "-" doesn't contain anything other than what could appear in an integer. Anyway, this isn't an is

Re: "printf %d ''" should diagnose the empty string

2024-11-20 Thread Chet Ramey
On 11/20/24 10:31 AM, Martin D Kealey wrote: On Wed, 20 Nov 2024, 07:36 Paul Eggert, > wrote: 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

Re: [bug #66460] A documentation correction regarding an array nameref???

2024-11-20 Thread Chet Ramey
On 11/20/24 4:48 AM, Wiley Young wrote: "The nameref attribute cannot be applied to array variables." Some thoughts on English language Perhaps "attribute" could be more explicitly defined? ...as something like, 'a characteristic [ given to | assigned to | applied to | associated with | d

Re: "printf %d ''" should diagnose the empty string

2024-11-20 Thread Martin D Kealey
On Wed, 20 Nov 2024, 07:36 Paul Eggert, wrote: > 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 ''"? > >From a semantic perspective, because "" doesn't contain any non-digits.