termios.h not included if sys/ioctl.h provides struct winsize

2024-08-12 Thread Grisha Levit
On e.g. Alpine Linux, the following are set by configure: bash_cv_struct_winsize_ioctl='yes' bash_cv_struct_winsize_termios='yes' bash_cv_struct_winsize_header='ioctl_h' ac_cv_func_tcgetwinsize='yes' and so config.h ends up with: #define STRUCT_WINSIZE_IN_SYS_IOCTL 1 /* #

Re: word selection in history expansion - !?word?%

2024-08-12 Thread Jess M
Given the age of the behaviour, I would agree on not making it the default behaviour. To update the documentation to reflect that, how about something like this: --- current --- lib/readline/doc/hsuser.texi @item % The first word matched by the most recent @samp{?@var{string}?} search, if the se

Re: word selection in history expansion - !?word?%

2024-08-12 Thread Chet Ramey
On 8/9/24 2:15 AM, Jess M wrote: Observed behaviour: ``` $ echo word01 word02 word03 floogle word01 word02 word03 floogle $ echo !?word?% echo word03 word03 $ # I expected to get word01 $ echo $BASH_VERSION 5.2.26(1)-release ``` The bash manual for word designators sounds to me as if word01 shou

Re: 'wait -n' with and without id arguments

2024-08-12 Thread Zachary Santer
On Mon, Aug 12, 2024 at 11:13 AM Chet Ramey wrote: > > On 8/7/24 2:47 PM, Zachary Santer wrote: > > > Now I understand that this is because the list of terminated child > > processes that 'wait -n' currently ignores is only used in the > > interactive shell. > > Do you mean when no arguments are s

Re: 'wait -n' with and without id arguments

2024-08-12 Thread Zachary Santer
On Mon, Aug 12, 2024 at 11:12 AM Chet Ramey wrote: > > That stuff changed last month, after bash-5.3-alpha was released. Before > that change, neither interactive nor non-interactive shells checked the > list of saved statuses. The difference was when the user was notified of > a process's exit st

Re: 'wait -n' with and without id arguments

2024-08-12 Thread Chet Ramey
On 8/7/24 2:47 PM, Zachary Santer wrote: Now I understand that this is because the list of terminated child processes that 'wait -n' currently ignores is only used in the interactive shell. Do you mean when no arguments are supplied? It's not. The difference is when a job is marked as notified

Re: 'wait -n' with and without id arguments

2024-08-12 Thread Chet Ramey
On 8/7/24 2:47 PM, Zachary Santer wrote: On Wed, Aug 7, 2024 at 11:06 AM Chet Ramey wrote: On 7/31/24 11:40 AM, Zachary Santer wrote: I think I was missing more than that. Was the original 'wait -n' discussion from January specific to its use within the interactive shell? No, it was due to

Re: printf inconsistent results for %.0f

2024-08-12 Thread Chet Ramey
On 8/12/24 10:30 AM, Laur Aliste wrote: Bash Version: 5.2 Patch Level: 21 Release Status: release Description: One of my old script that's been in use for 10+ years is using built-in bash printf for rounding float value to int via `printf`; as of today (Aug 12) it started returni

Re: printf inconsistent results for %.0f

2024-08-12 Thread Greg Wooledge
On Mon, Aug 12, 2024 at 16:30:26 +0200, Laur Aliste wrote: > Configuration Information: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -g -O2 -Werror=implicit-function-declaration > -fstack-protector-strong -fstack-clash-protection -Wformat > -Werror=format-security -fcf-pr

printf inconsistent results for %.0f

2024-08-12 Thread Laur Aliste
Configuration Information: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall uname output: Linux p14s 6.9.12-amd64 #1 SMP PREEMPT_DYNAM

Re: whats wrong , exit code 11 on android termux

2024-08-12 Thread Chet Ramey
On 8/9/24 11:02 PM, Oğuz wrote: On Saturday, August 10, 2024, Martin D Kealey wrote: Sorry, that was supposed to be a personal reply off-list. Do you always harass foreigners like that or was it an exception? "Foreigner" is indeed tricky in this context. I'd guess that the four principals

Re: whats wrong , exit code 11 on android termux

2024-08-12 Thread Chet Ramey
On 8/9/24 10:01 PM, Martin D Kealey wrote: On Thu, 8 Aug 2024 at 03:14, alex xmb sw ratchev wrote: mr chet I REALLY get annoyed when strangers call me "Mister Martin" or write "Mr Martin". I am NOT a child, so how DARE they mock me like that. The short version: Some folk don't care, others