bug#69636: Re: [PATCH] Improve quality of format-checking code for seq.

2024-03-08 Thread Paul Eggert
On 2024-03-08 05:47, Pádraig Brady wrote:   seq $a | xargs printf -- 'x%.0s'   printf "%${a}s" '' | tr ' ' x   yes x | head -n$a | tr -d '\n' Oh, I like those! Unfortunately the printf solution silently fails for me when a=100 due to a bug in Bash. Perhaps I'll get up the

bug#69636: Re: [PATCH] Improve quality of format-checking code for seq.

2024-03-08 Thread Pádraig Brady
tag 69636 notabug close 69636 stop On 08/03/2024 12:29, User wrote: Jim Meyering wrote: Paul Eggert wrote: * src/seq.c (validate_format): Remove. Migrate its checks into... (long_double_format): Report an error and exit if an error is found, instead of returning NULL.  All callers

bug#69636: Re: [PATCH] Improve quality of format-checking code for seq.

2024-03-08 Thread User
Jim Meyering wrote: Paul Eggert wrote: > * src/seq.c (validate_format): Remove. Migrate its checks into... > (long_double_format): Report an error and exit if an error is found, > instead of returning NULL.  All callers changed. > Use a more-consistent format for diagnostics. > *