|
From: | Walter Bächi |
Subject: | The GNU Awk User’s Guide: 8.1.6 Using Predefined Array Scanning Orders with gawk |
Date: | Mon, 3 Apr 2023 17:18:04 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |