[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The GNU Awk User’s Guide: 8.1.6 Using Predefined Array Scanning Orde
From: |
arnold |
Subject: |
Re: The GNU Awk User’s Guide: 8.1.6 Using Predefined Array Scanning Orders with gawk |
Date: |
Mon, 03 Apr 2023 13:38:28 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Hi.
You are correct, thanks for pointing this out. I will
fix it.
In the future, please try to format code in a more standard
fashion - I found this impossible to read.
If your mailer mangled it, then I apologize.
Best wishes,
Arnold
Walter Bächi <privor@xn--walter-bchi-s8a.ch> wrote:
> Hi
>
> The following example is wrong:
>
> /… if ("sorted_in" in PROCINFO) { save_sorted =
> PROCINFO["sorted_in"] PROCINFO["sorted_in"] = "@val_str_desc" # or
> whatever } … if (save_sorted) PROCINFO["sorted_in"] = save_sorted /
>
> It should be:
>
> /… if ("sorted_in" in PROCINFO) *save_sorted =
> PROCINFO["sorted_in"]****PROCINFO["sorted_in"] = "@val_str_desc"**#
> or whatever* … if (save_sorted) PROCINFO["sorted_in"] = save_sorted /
>
> Otherwise it is useless aslong as/"sorted_in"/ is not defined before
> in/PROCINFO/.
>
> Walter