Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread Martin D Kealey
Hi Branden On Wed, 10 Sept 2025 at 00:23, G. Branden Robinson < g.branden.robin...@gmail.com> wrote: > … Thankyou for pointing out that the headers are clickable. So it turns out that the “Mail Notification Carbon-Copy List” heading doesn't sit above an empty section. Nice to know. (On my scre

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread Oğuz
On Tuesday, September 9, 2025, anonymous wrote: > > This is a crime against humanity. This probably screwed so many people over > through the years. Some code would help better understand the problem. > Reply to this item at: > > > Who thought this shi

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread Chet Ramey
On 9/9/25 11:42 AM, Koichi Murase wrote: 2025年9月9日(火) 23:55 Chet Ramey : You can be an administrator or a contributor. I am an administrator for two groups: Bash and Readline. Being a contributor means being one of the developers: "Type below the name of the group you want to contribute to. Joi

Re: Project management in Savannah

2025-09-09 Thread Chet Ramey
On 9/9/25 12:44 PM, G. Branden Robinson wrote: Chet's practices for bash and readline observably differ from mine for groff in some respects; he's been doing his job far longer than I have mine, and since before Savannah even existed. This is a polite way of saying I'm old, of course. :-) --

Re: Project management in Savannah

2025-09-09 Thread Chet Ramey
On 9/9/25 12:44 PM, G. Branden Robinson wrote: Questions are what qualifies a person to become the group member and what level of the responsibilities is expected from the group members. I can't answer this for Chet/bash, but for groff, commit privileges attach to this status I believe this

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread Chet Ramey
On 9/9/25 10:23 AM, G. Branden Robinson wrote: If someone wants to be subscribed to _all_ of a project's (group's) Savannah tickets, including new submissions, that does, at present, require a group admin's involvement. https://lists.gnu.org/archive/html/groff/2024-10/msg00047.html This is wh

Re: Project management in Savannah

2025-09-09 Thread Collin Funk
"G. Branden Robinson" writes: >> Questions are what qualifies a person to become the group member and >> what level of the responsibilities is expected from the group members. > > I can't answer this for Chet/bash, but for groff, commit privileges > attach to this status--I believe it's how I got

Re: [bug #67486] Can't use if with two separate awk floating number ...

2025-09-09 Thread Lawrence Velázquez
On Tue, Sep 9, 2025, at 7:19 AM, Greg Wooledge wrote: >> Bash will exit on non-success exit code of the first awk statement, >> so the if statement will be incorrectly evaluated. > > If bash is actually *exiting*, that implies that set -e may be in effect, > which opens up a whole new dimension of

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread Koichi Murase
2025年9月9日(火) 23:55 Chet Ramey : > You can be an administrator or a contributor. I am an administrator for > two groups: Bash and Readline. > > Being a contributor means being one of the developers: "Type below the name > of the group you want to contribute to. Joining a group means getting write >

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread Koichi Murase
2025年9月10日(水) 0:38 G. Branden Robinson : > At 2025-09-09T10:54:29-0400, Chet Ramey wrote: > > Being a contributor means being one of the developers: "Type below the > > name of the group you want to contribute to. Joining a group means > > getting write access to the repositories of the group, and

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread Chet Ramey
On 9/9/25 11:37 AM, G. Branden Robinson wrote: At 2025-09-09T10:54:29-0400, Chet Ramey wrote: On 9/9/25 10:23 AM, G. Branden Robinson wrote: [Martin D. Kealey wrote:] Savane (the software that runs on Savannah) only seems to offer “group membershi

Re: [bug #67486] Can't use if with two separate awk floating number ...

2025-09-09 Thread Greg Wooledge
On Tue, Sep 09, 2025 at 00:10:55 -0600, Stan Marsh wrote: > I suppose that what this thread is really about is how some desperate > shell coders resorted to AWK to do floating point comparisons before > there was the fltexpr loadable command. Loadable builtins are not readily available on all plat

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread G. Branden Robinson
At 2025-09-09T17:43:10+1000, Martin D Kealey wrote: > On Tue, 9 Sept 2025 at 14:50, Oğuz wrote: > > > Reply to this item at: > > > > > Who thought this shit was a good idea? What's wrong with plain old > > e-mail? > > I agree: the inability to submit *repl

Re: [bug #67486] Can't use if with two separate awk floating number ...

2025-09-09 Thread Chet Ramey
On 9/9/25 7:19 AM, Greg Wooledge wrote: Bash will exit on non-success exit code of the first awk statement, so the if statement will be incorrectly evaluated. If bash is actually *exiting*, that implies that set -e may be in effect, which opens up a whole new dimension of excitement. If you

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread Martin D Kealey
On Tue, 9 Sept 2025 at 14:50, Oğuz wrote: > > Reply to this item at: > > > > Who thought this shit was a good idea? What's wrong with plain old e-mail? > I agree: the inability to submit *replies* by email is quite unsatisfactory. (This is compounded by h

Re: [bug #67486] Can't use if with two separate awk floating number ...

2025-09-09 Thread Félix Hauri via Bug reports for the GNU Bourne Again SHell
This look like an XY problem. If question look like: "How can I compare two floating point then fail when I encounter a pair where 1st are greater than 2nd value... in bash" Then answer seem not necessarily linked to `awk`! Anyway, using awk, the method could be simplified: awk '{if ($1

Re: [bug #67486] Can't use if with two separate awk floating number ...

2025-09-09 Thread Phi Debian
On Tue, Sep 9, 2025 at 8:11 AM Stan Marsh wrote: > For the benefit of anyone trying to follow this thread, code in question > seems to be: > > >if awk '{exit $1 < $2 ? 0 : 1;}' <<< '1.1 1.2' && awk '{exit $1 < $2 ? 0 > : 1;}' <<< '1.3 1.4' > >then > > echo ok > >fi > > Actually, that is correct