Hi Andrew, i am sorry i sent a partly misleading version of 'awk_json.awk' to you which doesn't produce the SIGSEGV because the value of the variable 'json' is overwritten.So again I send to you two improved versions : 'awk_json.awk' which produces the SIGSEGV and 'awk_json2.awk' that doesn't. The difference is that i moved the trailing element in the outer JSON array, which is a JSON object, before the second last element, which is another JSON array. So i changed the order of the very same elements...
Hi Andrew, i attached the AWK program file... The awk i'm using :GNU Awk 5.2.2, API 3.2, PMA Avon 8-g1, (GNU MPFR 4.0.2, GNU MP 6.2.0) Copyright (C) 1989, 1991-2023 Free Software Foundation. on Ubuntu 20.04 $ locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=de_DE.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=de_DE.UTF-8 LC_NAME=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8...
Hi there, i get this program crash with the following code: !/usr/local/bin/gawk -f @load "filefuncs" @load "json" BEGIN { json="[null,true,1234567891,\"深入 JSON\",[\"one\",\"t o\",\"3\"],{\"one\":\"s x\",\"t o\":\"5\",\"3\":\"four\n\"}]" # if (!json::from_json(json, data)) exit 3 json="[\"foo\",42,42.1,-123,\"@/regexp/\",{\"a\":\"6a\",\"b\":\"6b\",\"c\":[\"6c 1\",\"6c 2\"]},null]" # if (!json::from_json(json, data)) exit 2 switch (what) { case "to": stat("/etc/passwd", data) statinfo = json::to_json(data)...
Is it necessary for bashdb to use identifiers without '_Dbg...' for variables (e.g. the variable 'args' in complete.sh among others)? The use of these identifiers seem to kind of spoil variables with the same name in the debugged bash file. I.e. if I then do 'x args' in a debug session I never get a correct response from bashdb. Also I never get correct responses for 'x $#' as opposed to 'x $@'. Why? -Lothar