Unexpected $BASH_COMMAND after error in subshell

2025-02-23 Thread Max Bowsher
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Linux spectrex360 6.8.0-53-generic #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64

Re: [sr #111166] ngettext syntax

2025-02-23 Thread Chet Ramey
On 2/21/25 7:52 PM, Robert Elz wrote: | There is no user who would think that using a numbered conversion | specifier is not an absolute position in the original argument list. Probably not, but it doesn't matter if the application doesn't mix numbered and unnumbered conversions, and it s

Re: [sr #111166] ngettext syntax

2025-02-23 Thread Martin D Kealey
On Mon, 24 Feb 2025 at 13:48, Phi Debian wrote: > I also forgot to mention that C99 introduced this > >There may be no gaps >in the numbers of arguments specified using '$'; for example, if > argu‐ >ments 1 and 3 are specified, argument 2 must also be specified > some‐

Re: [sr #111166] ngettext syntax

2025-02-23 Thread Chet Ramey
On 2/22/25 12:38 AM, Phi Debian wrote: The new semantic is simple - numbered are indexed args access (easy to understand) - unumbered are counting only the unumbered from the fmt string This way when you don't mix then the both work as expected. This isn't unreasonable. coreutils git chose th

Re: [sr #111166] ngettext syntax

2025-02-23 Thread Phi Debian
On Sun, Feb 23, 2025 at 8:03 PM Chet Ramey wrote: > On 2/22/25 12:38 AM, Phi Debian wrote: > > > The new semantic is simple > > - numbered are indexed args access (easy to understand) > > - unumbered are counting only the unumbered from the fmt string > > > > This way when you don't mix then the