Re: bash --pretty-print and pattern

2025-02-21 Thread Timotei Campian
great hint! many thanks On Thu, 20 Feb 2025 at 14:26, Koichi Murase wrote: > 2025年2月20日(木) 20:51 Timotei Campian : > > echo !(file.f*) > > > > *bash --pretty-print test.sh* > > If this script file "test.sh" will be used as an independent > executable file, to make it work, you need to put "shop

Re: [sr #111166] ngettext syntax

2025-02-21 Thread Chet Ramey
On 2/21/25 1:37 PM, Phi Debian wrote: Given the following, which POSIX says is unspecified: printf '%s %3$s %s\n' A B C D ksh93-u+m prints "A D", which is just wrong. No matter how you mix numbered and unnumbered specifications, or whether you implement numbered specific

Re: [sr #111166] ngettext syntax

2025-02-21 Thread Phi Debian
On Fri, Feb 21, 2025 at 3:08 PM Chet Ramey wrote: > On 2/20/25 11:44 PM, Phi Debian wrote: > > > > > > On Thu, Feb 20, 2025 at 11:41 PM Chet Ramey > > wrote: > > > > A response to the question about printf supporting %n$ conversion > > specifications I posted

Re: [sr #111166] ngettext syntax

2025-02-21 Thread Chet Ramey
On 2/20/25 11:44 PM, Phi Debian wrote: On Thu, Feb 20, 2025 at 11:41 PM Chet Ramey > wrote: A response to the question about printf supporting %n$ conversion specifications I posted to savannah. Thanx @chet, I didn't knew this thread. The thread say ksh93

Re: bash --pretty-print and pattern

2025-02-21 Thread Chet Ramey
On 2/20/25 11:04 AM, Koichi Murase wrote: Thank you. I didn't know this behavior. Is that documented? I tried to find it in the description of `--pretty-print', but I realized that the --pretty-print option itself is undocumented. It's not. It's just a novelty. -- ``The lyf so short, the cr

Re: [sr #111166] ngettext syntax

2025-02-21 Thread Robert Elz
Date:Fri, 21 Feb 2025 09:08:13 -0500 From:Chet Ramey Message-ID: <59a1d1d0-b6eb-4652-9e77-1fc4c5992...@case.edu> | Given the following, which POSIX says is unspecified: | | printf '%s %3$s %s\n' A B C D | | ksh93-u+m prints "A D", which is just wrong. It ac

Re: [sr #111166] ngettext syntax

2025-02-21 Thread Chet Ramey
On 2/21/25 10:13 AM, Robert Elz wrote: Date:Fri, 21 Feb 2025 09:08:13 -0500 From:Chet Ramey Message-ID: <59a1d1d0-b6eb-4652-9e77-1fc4c5992...@case.edu> | Given the following, which POSIX says is unspecified: | | printf '%s %3$s %s\n' A B C D | | ks

Re: [sr #111166] ngettext syntax

2025-02-21 Thread Robert Elz
Date:Fri, 21 Feb 2025 10:55:56 -0500 From:Chet Ramey Message-ID: | That is bizarre and indefensible. Like I said, it isn't what I'd do, but it is easy to see how an implementation might end up like that (and ksh93's might be one of the first of them, which kind of

Re: [sr #111166] ngettext syntax

2025-02-21 Thread Phi Debian
On Sat, Feb 22, 2025 at 1:54 AM Robert Elz wrote: > > > That is, in the example > > printf '%s %3$s %s\n' A B C D > > The updated ksh93 seems to ignore the numbered conversions when counting > the args for the unnumbered ones (so "A C B" (for the first line anyway, > I won't go on about r