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

2024-11-19 Thread #!microsuxx
the printf %d gets to be no print_out at all u specify a % but no arg means it wont try printf at all smth printf %d '' we can talk about returns 0 and looks normal so to me On Tue, Nov 19, 2024, 8:46 PM Paul Eggert wrote: > Configuration Information [Automatically generated, do not change]: >

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

2024-11-19 Thread #!microsuxx
On Tue, Nov 19, 2024, 10:04 PM #!microsuxx wrote: > the printf %d gets to be no print_out at all > u specify a % but no arg > means it wont try printf at all smth > > printf %d '' we can talk about > returns 0 > and looks normal so to me > sorry i missed u already did right sorry .. u can try p

Re: [PATCH] lib/readline/doc makefiles clean targets

2024-11-19 Thread Chet Ramey
On 11/18/24 10:28 PM, Grisha Levit wrote: This is one of the differences between the distributions and the devel branch. y.tab.h is always in $(srcdir) in distributions, and the Makefiles accommodate them in favor of the devel branch. Could we install INSTALLED_HEADERS the same way as CREATED_

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

2024-11-19 Thread Paul Eggert
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

Re: The 'source x' command doesn't keep variables set by x when source output is piped into other command

2024-11-19 Thread Chet Ramey
On 11/18/24 12:55 AM, Martin D Kealey wrote: On Sun, 17 Nov 2024, 03:32 Chet Ramey, > wrote: On 11/16/24 3:36 AM, Martin D Kealey wrote: I don't think a disclaimer saying "this manual is not what it does not claim to be" is particularly useful. That's

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

2024-11-19 Thread Paul Eggert
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -std=gnu23 Compilation CFLAGS: -g -O2 uname output: Linux penguin.cs.ucla.edu 6.11.6-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 16:09:34 UTC 2024 x86_64 GNU/Linux Machine Type:

Re: AW: Built-in `test -a` returns incorrectly

2024-11-19 Thread Chet Ramey
On 11/19/24 2:31 AM, Klüver, Tibor wrote: Hi, thank you both for the detailed explanation. I had fully forgotten about the binary meaning of -a. However, it makes me wonder why this isn't more visibly documented. The current devel branch man page says this: The historical operator-pre