~/oil/_clone/ble.sh ~/oil ble.sh: insane environment: $USER is empty. ble.sh: modified USER=uke ble.sh: suspicious environment: $LANG is empty. ble/term.sh: updating tput cache for TERM=xterm... mawk: line 37: regular expression compile failed (missing operand) ^('[^']*'|\$'([^\\']|\\.)*'|\$?"([^\\"]|\\.)*"|\\.|[^[:space:]"'`;&|()])* ble/term.sh: updating tput cache for TERM=xterm... done osh warning: The 'RETURN' hook isn't implemented real 7.271 user 7.000 sys 0.133 real 0.717 user 0.139 sys 0.008 declare -i i=1 ^~~~~~~ lib/test-util.sh:175: 'declare' doesn't implement flag -i (shopt --set ignore_flags_not_impl) declare -u u=a ^~~~~~~ lib/test-util.sh:181: Warning: OSH doesn't implement flags -l or -u (shopt --set ignore_flags_not_impl) declare -l l=B ^~~~~~~ lib/test-util.sh:182: Warning: OSH doesn't implement flags -l or -u (shopt --set ignore_flags_not_impl) declare -c c=c ^~ lib/test-util.sh:183: 'declare' doesn't accept flag -c Running out/ble.osh DONE Running out/ble.osh Running lib/test-main.sh lib/test-main.sh:58: ble/util/readlink f.txt [[ $ret != /* ]] && ret=${PWD%/}/$ret --- 1429.ret.expect 2024-07-18 15:12:23.744326559 +0000 +++ 1429.ret.result 2024-07-18 15:12:23.744326559 +0000 @@ -1 +1 @@ -/tmp/blesh/1000/1349.test/1429.d/ab/cd/ef/file.txt +/tmp/blesh/1000/1349.test/1429.d/ef/file.txt lib/test-main.sh:80: path=phys.link/1.txt ble/util/readlink/.resolve-physical-directory declare -p path PWD >&2 [[ $path == */phys.dir/1.txt && $PWD == "$pwd" ]] --- 1429.exit.expect 2024-07-18 15:12:23.952327382 +0000 +++ 1429.exit.result 2024-07-18 15:12:23.952327382 +0000 @@ -1 +1 @@ -0 +1 declare -- path=/tmp/blesh/1000/1349.test/1429.d/1.txt declare -x PWD=/tmp/blesh/1000/1349.test/1429.d lib/test-main.sh:101: [[ ${value//$pattern/$'\n'} == $'\n'hello$'\n' ]] --- 1462.exit.expect 2024-07-18 15:12:24.040327730 +0000 +++ 1462.exit.result 2024-07-18 15:12:24.040327730 +0000 @@ -1 +1 @@ -0 +1 84.2% [section] ble/main: 16/19 (3 fail, 0 crash, 0 skip) DONE Running lib/test-main.sh Running lib/test-util.sh lib/test-util.sh:190: ble/variable#get-attr i; ret=$attr --- 1473.ret.expect 2024-07-18 15:12:25.272332607 +0000 +++ 1473.ret.result 2024-07-18 15:12:25.272332607 +0000 @@ -1 +1 @@ -i + lib/test-util.sh:191: ble/variable#get-attr x; ret=$attr --- 1473.ret.expect 2024-07-18 15:12:25.304332733 +0000 +++ 1473.ret.result 2024-07-18 15:12:25.304332733 +0000 @@ -1 +1 @@ -x + lib/test-util.sh:192: ble/variable#get-attr r; ret=$attr --- 1473.ret.expect 2024-07-18 15:12:25.340332876 +0000 +++ 1473.ret.result 2024-07-18 15:12:25.340332876 +0000 @@ -1 +1 @@ -r + lib/test-util.sh:195: ble/variable#get-attr u; ret=$attr --- 1473.ret.expect 2024-07-18 15:12:25.384333050 +0000 +++ 1473.ret.result 2024-07-18 15:12:25.384333050 +0000 @@ -1 +1 @@ -u + lib/test-util.sh:196: ble/variable#get-attr l; ret=$attr --- 1473.ret.expect 2024-07-18 15:12:25.420333192 +0000 +++ 1473.ret.result 2024-07-18 15:12:25.420333192 +0000 @@ -1 +1 @@ -l + lib/test-util.sh:197: ble/variable#get-attr c; ret=$attr --- 1473.ret.expect 2024-07-18 15:12:25.456333335 +0000 +++ 1473.ret.result 2024-07-18 15:12:25.456333335 +0000 @@ -1 +1 @@ -c + lib/test-util.sh:203: ble/variable#has-attr i i --- 1473.exit.expect 2024-07-18 15:12:25.500333509 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.500333509 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:204: ble/variable#has-attr x x --- 1473.exit.expect 2024-07-18 15:12:25.536333651 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.536333651 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:205: ble/variable#has-attr r r --- 1473.exit.expect 2024-07-18 15:12:25.568333778 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.568333778 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:212: ble/variable#has-attr u u --- 1473.exit.expect 2024-07-18 15:12:25.656334126 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.660334142 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:213: ble/variable#has-attr l l --- 1473.exit.expect 2024-07-18 15:12:25.692334269 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.692334269 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:214: ble/variable#has-attr c c --- 1473.exit.expect 2024-07-18 15:12:25.724334395 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.724334395 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:226: ble/is-inttype i --- 1473.exit.expect 2024-07-18 15:12:25.816334760 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.816334760 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:228: ble/is-readonly r --- 1473.exit.expect 2024-07-18 15:12:25.864334950 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.864334950 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:231: ble/is-transformed u --- 1473.exit.expect 2024-07-18 15:12:25.916335155 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.916335155 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:232: ble/is-transformed l --- 1473.exit.expect 2024-07-18 15:12:25.956335314 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.956335314 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:233: ble/is-transformed c --- 1473.exit.expect 2024-07-18 15:12:25.996335472 +0000 +++ 1473.exit.result 2024-07-18 15:12:25.996335472 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:251: is-global v0 --- 1508.exit.expect 2024-07-18 15:12:26.072335773 +0000 +++ 1508.exit.result 2024-07-18 15:12:26.072335773 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:252: is-global v1 --- 1508.exit.expect 2024-07-18 15:12:26.116335947 +0000 +++ 1508.exit.result 2024-07-18 15:12:26.116335947 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:257: ble/variable#is-global v0 --- 1508.exit.expect 2024-07-18 15:12:26.216336343 +0000 +++ 1508.exit.result 2024-07-18 15:12:26.216336343 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:258: ble/variable#is-global v1 --- 1508.exit.expect 2024-07-18 15:12:26.260336517 +0000 +++ 1508.exit.result 2024-07-18 15:12:26.260336517 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:263: ble/variable#is-global v0u --- 1508.exit.expect 2024-07-18 15:12:26.356336626 +0000 +++ 1508.exit.result 2024-07-18 15:12:26.356336626 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:265: ble/variable#is-global v1u --- 1508.exit.expect 2024-07-18 15:12:26.396336654 +0000 +++ 1508.exit.result 2024-07-18 15:12:26.396336654 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:597: ble/string#split-lines a "" ; status --- 1556.stdout.expect 2024-07-18 15:12:28.440338066 +0000 +++ 1556.stdout.result 2024-07-18 15:12:28.440338066 +0000 @@ -1 +1 @@ -1:() +0:() lib/test-util.sh:599: ble/string#split-lines a " " ; status --- 1556.stdout.expect 2024-07-18 15:12:28.492338102 +0000 +++ 1556.stdout.result 2024-07-18 15:12:28.492338102 +0000 @@ -1 +1 @@ -2:( ) +0:() lib/test-util.sh:600: ble/string#split-lines a "1 " ; status --- 1556.stdout.expect 2024-07-18 15:12:28.528338127 +0000 +++ 1556.stdout.result 2024-07-18 15:12:28.528338127 +0000 @@ -1 +1 @@ -2:(1 ) +1:(1) lib/test-util.sh:601: ble/string#split-lines a " 2" ; status --- 1556.stdout.expect 2024-07-18 15:12:28.560338149 +0000 +++ 1556.stdout.result 2024-07-18 15:12:28.560338149 +0000 @@ -1 +1 @@ -2:( 2) +0:() lib/test-util.sh:602: ble/string#split-lines a "1 3" ; status --- 1556.stdout.expect 2024-07-18 15:12:28.596338174 +0000 +++ 1556.stdout.result 2024-07-18 15:12:28.596338174 +0000 @@ -1 +1 @@ -3:(1 3) +1:(1) lib/test-util.sh:782: ble/string#quote-command echo hello world --- 1574.ret.expect 2024-07-18 15:12:30.284342445 +0000 +++ 1574.ret.result 2024-07-18 15:12:30.288342461 +0000 @@ -1 +1 @@ -echo 'hello' 'world' +echo hello world lib/test-util.sh:784: ble/string#quote-command echo "'test'" --- 1574.ret.expect 2024-07-18 15:12:30.332342645 +0000 +++ 1574.ret.result 2024-07-18 15:12:30.332342645 +0000 @@ -1 +1 @@ -echo ''\''test'\''' +echo $'\'test\'' lib/test-util.sh:786: ble/string#quote-command echo a{1..4} --- 1574.ret.expect 2024-07-18 15:12:30.376342828 +0000 +++ 1574.ret.result 2024-07-18 15:12:30.376342828 +0000 @@ -1 +1 @@ -echo 'a1' 'a2' 'a3' 'a4' +echo a1 a2 a3 a4 lib/test-util.sh:790: ble/util/print-quoted-command echo hello world --- 1574.stdout.expect 2024-07-18 15:12:30.436343078 +0000 +++ 1574.stdout.result 2024-07-18 15:12:30.436343078 +0000 @@ -1 +1 @@ -echo 'hello' 'world' +echo hello world lib/test-util.sh:792: ble/util/print-quoted-command echo "'test'" --- 1574.stdout.expect 2024-07-18 15:12:30.484343278 +0000 +++ 1574.stdout.result 2024-07-18 15:12:30.484343278 +0000 @@ -1 +1 @@ -echo ''\''test'\''' +echo $'\'test\'' lib/test-util.sh:794: ble/util/print-quoted-command echo a{1..4} --- 1574.stdout.expect 2024-07-18 15:12:30.532343478 +0000 +++ 1574.stdout.result 2024-07-18 15:12:30.532343478 +0000 @@ -1 +1 @@ -echo 'a1' 'a2' 'a3' 'a4' +echo a1 a2 a3 a4 lib/test-util.sh:843: ble/util/strlen α --- 1589.ret.expect 2024-07-18 15:12:31.176346161 +0000 +++ 1589.ret.result 2024-07-18 15:12:31.176346161 +0000 @@ -1 +1 @@ -2 +1 lib/test-util.sh:844: ble/util/strlen αβγ --- 1589.ret.expect 2024-07-18 15:12:31.212346311 +0000 +++ 1589.ret.result 2024-07-18 15:12:31.212346311 +0000 @@ -1 +1 @@ -6 +3 lib/test-util.sh:845: ble/util/strlen あ --- 1589.ret.expect 2024-07-18 15:12:31.244346445 +0000 +++ 1589.ret.result 2 ble/function#advice/original:f1 ^~~ [ eval word at line 4396 of out/ble.osh ]:1 builtin eval -- "$1"; local ext=$? ^~~~ out/ble.osh:4396: 'ble/function#advice/original:f1' not found (OILS-ERR-100) ble/function#advice/original:f1 ^~~ [ eval word at line 4396 of out/ble.osh ]:1 builtin eval -- "$1"; local ext=$? ^~~~ out/ble.osh:4396: 'ble/function#advice/original:f1' not found (OILS-ERR-100) ble/function#advice/original:f1 ^~~ [ eval word at line 4396 of out/ble.osh ]:1 builtin eval -- "$1"; local ext=$? ^~~~ out/ble.osh:4396: 'ble/function#advice/original:f1' not found (OILS-ERR-100) ble/function#advice/original:f1 ^~~ [ eval word at line 4396 of out/ble.osh ]:1 builtin eval -- "$1"; local ext=$? ^~~~ out/ble.osh:4396: 'ble/function#advice/original:f1' not found (OILS-ERR-100) ble/function#advice/original:f1 ^~~ [ eval word at line 4396 of out/ble.osh ]:1 builtin eval -- "$1"; local ext=$? ^~~~ out/ble.osh:4396: 'ble/function#advice/original:f1' not found (OILS-ERR-100) 024-07-18 15:12:31.244346445 +0000 @@ -1 +1 @@ -3 +1 lib/test-util.sh:846: ble/util/strlen あいう --- 1589.ret.expect 2024-07-18 15:12:31.280346595 +0000 +++ 1589.ret.result 2024-07-18 15:12:31.280346595 +0000 @@ -1 +1 @@ -9 +3 lib/test-util.sh:847: ble/util/strlen aα --- 1589.ret.expect 2024-07-18 15:12:31.316346744 +0000 +++ 1589.ret.result 2024-07-18 15:12:31.316346744 +0000 @@ -1 +1 @@ -3 +2 lib/test-util.sh:848: ble/util/strlen aαあ --- 1589.ret.expect 2024-07-18 15:12:31.348346878 +0000 +++ 1589.ret.result 2024-07-18 15:12:31.348346878 +0000 @@ -1 +1 @@ -6 +3 lib/test-util.sh:852: ble/util/strlen α --- 1589.ret.expect 2024-07-18 15:12:31.396347078 +0000 +++ 1589.ret.result 2024-07-18 15:12:31.396347078 +0000 @@ -1 +1 @@ -2 +1 lib/test-util.sh:853: ble/util/strlen あ --- 1589.ret.expect 2024-07-18 15:12:31.428347211 +0000 +++ 1589.ret.result 2024-07-18 15:12:31.428347211 +0000 @@ -1 +1 @@ -3 +1 lib/test-util.sh:885: ble/util/substr あいう 0 3 --- 1606.ret.expect 2024-07-18 15:12:31.764348611 +0000 +++ 1606.ret.result 2024-07-18 15:12:31.764348611 +0000 @@ -1 +1 @@ -あ +あいう lib/test-util.sh:886: ble/util/substr あいう 3 6 --- 1606.ret.expect 2024-07-18 15:12:31.800348761 +0000 +++ 1606.ret.result 2024-07-18 15:12:31.800348761 +0000 @@ -1 +1 @@ -いう + lib/test-util.sh:1239: ble/util/mapfile a < <(echo); status --- 1616.stdout.expect 2024-07-18 15:12:36.064365895 +0000 +++ 1616.stdout.result 2024-07-18 15:12:36.064365895 +0000 @@ -1 +1 @@ -1:() +0:() lib/test-util.sh:1240: ble/util/mapfile a < <(echo;echo); status --- 1616.stdout.expect 2024-07-18 15:12:36.104366047 +0000 +++ 1616.stdout.result 2024-07-18 15:12:36.104366047 +0000 @@ -1 +1 @@ -2:( ) +0:() lib/test-util.sh:1241: ble/util/mapfile a < <(echo a;echo;echo b); status --- 1616.stdout.expect 2024-07-18 15:12:36.144366200 +0000 +++ 1616.stdout.result 2024-07-18 15:12:36.144366200 +0000 @@ -1 +1 @@ -3:(a b) +1:(a) lib/test-util.sh:1259: ble/util/assign-array a echo; status --- 1616.stdout.expect 2024-07-18 15:12:36.280366718 +0000 +++ 1616.stdout.result 2024-07-18 15:12:36.280366718 +0000 @@ -1 +1 @@ -1:() +0:() lib/test-util.sh:1262: ble/util/assign-array a "echo; echo; echo"; status --- 1616.stdout.expect 2024-07-18 15:12:36.348366978 +0000 +++ 1616.stdout.result 2024-07-18 15:12:36.348366978 +0000 @@ -1 +1 @@ -3:( ) +0:() lib/test-util.sh:1263: ble/util/assign-array a "echo 1; echo; echo 2"; status --- 1616.stdout.expect 2024-07-18 15:12:36.388367130 +0000 +++ 1616.stdout.result 2024-07-18 15:12:36.388367130 +0000 @@ -1 +1 @@ -3:(1 2) +1:(1) lib/test-util.sh:1360: f1 --- 1700.stdout.expect 2024-07-18 15:12:37.396370972 +0000 +++ 1700.stdout.result 2024-07-18 15:12:37.396370972 +0000 @@ -1,2 +1 @@ pre -original ble/function#advice/original:"${ADVICE_WORDS[@]}" ^~~ out/ble.osh:4505: 'ble/function#advice/original:f1' not found (OILS-ERR-100) lib/test-util.sh:1362: f1 --- 1700.stdout.expect 2024-07-18 15:12:37.452371186 +0000 +++ 1700.stdout.result 2024-07-18 15:12:37.452371186 +0000 @@ -1,3 +1,2 @@ pre -original post ble/function#advice/original:"${ADVICE_WORDS[@]}" ^~~ out/ble.osh:4505: 'ble/function#advice/original:f1' not found (OILS-ERR-100) lib/test-util.sh:1364: f1 --- 1700.stdout.expect 2024-07-18 15:12:37.504371384 +0000 +++ 1700.stdout.result 2024-07-18 15:12:37.504371384 +0000 @@ -1,3 +1,2 @@ A -original post ble/function#advice/original:"${ADVICE_WORDS[@]}" ^~~ out/ble.osh:4505: 'ble/function#advice/original:f1' not found (OILS-ERR-100) lib/test-util.sh:1366: f1 --- 1700.stdout.expect 2024-07-18 15:12:37.556371582 +0000 +++ 1700.stdout.result 2024-07-18 15:12:37.560371598 +0000 @@ -1,3 +1,2 @@ A -original B ble/function#advice/original:"${ADVICE_WORDS[@]}" ^~~ out/ble.osh:4505: 'ble/function#advice/original:f1' not found (OILS-ERR-100) lib/test-util.sh:1368: f1 --- 1700.stdout.expect 2024-07-18 15:12:37.612371796 +0000 +++ 1700.stdout.result 2024-07-18 15:12:37.612371796 +0000 @@ -1,5 +1,4 @@ A ble/function#advice/original:f1 ^~~ [ eval word at line 4396 of out/ble.osh ]:1 builtin eval -- "$1"; local ext=$? ^~~~ out/ble.osh:4396: 'ble/function#advice/original:f1' not found (OILS-ERR-100) ble/function#push/0:echo ^~~ [ eval word at line 4396 of out/ble.osh ]:1 builtin eval -- "$1"; local ext=$? ^~~~ out/ble.osh:4396: 'ble/function#push/0:echo' not found (OILS-ERR-100) ble/function#push/0:echo ^~~ [ eval word at line 4396 of out/ble.osh ]:1 builtin eval -- "$1"; local ext=$? ^~~~ out/ble.osh:4396: 'ble/function#push/0:echo' not found (OILS-ERR-100) ble/function#push/0:echo ^~~ [ eval word at line 4396 of out/ble.osh ]:1 builtin eval -- "$1"; local ext=$? ^~~~ out/ble.osh:4396: 'ble/function#push/0:echo' not found (OILS-ERR-100) ble/function#pop: echo is not a function. ble/function#pop: echo is not a function. [ -original ] B ble/function#advice/original:"${ADVICE_WORDS[@]}" ^~~ out/ble.osh:4505: 'ble/function#advice/original:f1' not found (OILS-ERR-100) lib/test-util.sh:1374: f1 --- 1700.stdout.expect 2024-07-18 15:12:37.672372024 +0000 +++ 1700.stdout.result 2024-07-18 15:12:37.672372024 +0000 @@ -1,5 +1,4 @@ A [ -original quick ] B ble/function#advice/original:"${ADVICE_WORDS[@]}" ^~~ out/ble.osh:4505: 'ble/function#advice/original:f1' not found (OILS-ERR-100) lib/test-util.sh:1377: f1 --- 1700.stdout.expect 2024-07-18 15:12:37.732372253 +0000 +++ 1700.stdout.result 2024-07-18 15:12:37.736372268 +0000 @@ -1 +1 @@ -original + --- 1700.exit.expect 2024-07-18 15:12:37.752372329 +0000 +++ 1700.exit.result 2024-07-18 15:12:37.752372329 +0000 @@ -1 +1 @@ -0 +127 ble/function#advice/original:"${ADVICE_WORDS[@]}" ^~~ out/ble.osh:4505: 'ble/function#advice/original:f1' not found (OILS-ERR-100) lib/test-util.sh:1378: f1 1 --- 1700.stdout.expect 2024-07-18 15:12:37.796372497 +0000 +++ 1700.stdout.result 2024-07-18 15:12:37.800372512 +0000 @@ -1 +1 @@ -original 1 + --- 1700.exit.expect 2024-07-18 15:12:37.816372573 +0000 +++ 1700.exit.result 2024-07-18 15:12:37.816372573 +0000 @@ -1 +1 @@ -0 +127 ble/function#advice/original:"${ADVICE_WORDS[@]}" ^~~ out/ble.osh:4505: 'ble/function#advice/original:f1' not found (OILS-ERR-100) lib/test-util.sh:1391: echo 1 2 3 --- 1721.stdout.expect 2024-07-18 15:12:37.936373031 +0000 +++ 1721.stdout.result 2024-07-18 15:12:37.940373046 +0000 @@ -1,3 +1,3 @@ A -(1 2 3) +1 2 3 Z lib/test-util.sh:1393: echo 1 2 3 --- 1721.stdout.expect 2024-07-18 15:12:37.984373214 +0000 +++ 1721.stdout.result 2024-07-18 15:12:37.984373214 +0000 @@ -1,5 +1,3 @@ [ -A -(1 2 3) -Z +1 2 3 ] lib/test-util.sh:1396: echo 1 2 3 --- 1721.stdout.expect 2024-07-18 15:12:38.032373397 +0000 +++ 1721.stdout.result 2024-07-18 15:12:38.032373397 +0000 @@ -1,3 +1 @@ -A -(1 2 3) -Z +1 2 3 lib/test-util.sh:1398: echo 1 2 3 --- 1721.stdout.expect 2024-07-18 15:12:38.072373549 +0000 +++ 1721.stdout.result 2024-07-18 15:12:38.072373549 +0000 @@ -1 +1 @@ -(1 2 3) +1 2 3 lib/test-util.sh:1400: echo 1 2 3 --- 1721.stdout.expect 2024-07-18 15:12:38.108373686 +0000 +++ 1721.stdout.result 2024-07-18 15:12:38.108373686 +0000 @@ -1 +1 @@ -[1 2 3] +1 2 3 lib/test-util.sh:1401: ble/is-function echo --- 1721.exit.expect 2024-07-18 15:12:38.144373824 +0000 +++ 1721.exit.result 2024-07-18 15:12:38.144373824 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:1402: ble/function#pop echo --- 1721.exit.expect 2024-07-18 15:12:38.180373961 +0000 +++ 1721.exit.result 2024-07-18 15:12:38.180373961 +0000 @@ -1 +1 @@ -0 +1 ble/function#pop: echo is not a function. lib/test-util.sh:1439: ble/util/sprintf ret "[%#.2g]" 27 --- 1737.ret.expect 2024-07-18 15:12:38.432374921 +0000 +++ 1737.ret.result 2024-07-18 15:12:38.436374937 +0000 @@ -1 +1 @@ -[27.] +[1b] [%#.2g] ^ [ printf word at line 4690 of out/ble.osh ]:1 lib/test-util.sh:1440: ble/util/sprintf ret "[%#.2f]" 27 --- 1737.ret.expect 2024-07-18 15:12:38.468375059 +0000 +++ 1737.ret.result 2024-07-18 15:12:38.472375074 +0000 @@ -1 +1 @@ -[27.00] +[1b] [%#.2f] ^ [ printf word at line 4690 of out/ble.osh ]:1 lib/test-util.sh:1478: ble/alias#expand aaa1 --- 1743.ret.expect 2024-07-18 15:12:38.680375867 +0000 +++ 1743.ret.result 2024-07-18 15:12:38.684375882 +0000 @@ -1 +1 @@ -aaa2 world +aaa1 lib/test-util.sh:1480: ble/alias#expand aaa2 --- 1743.ret.expect 2024-07-18 15:12:38.716376004 +0000 +++ 1743.ret.result 2024-07-18 15:12:38.716376004 +0000 @@ -1 +1 @@ -aaa3 hello +aaa2 lib/test-util.sh:1481: ble/alias#expand aaa1 --- 1743.ret.expect 2024-07-18 15:12:38.748376126 +0000 +++ 1743.ret.result 2024-07-18 15:12:38.752376141 +0000 @@ -1 +1 @@ -aaa2 world +aaa1 lib/test-util.sh:1483: ble/alias#expand aaa3 --- 1743.ret.expect 2024-07-18 15:12:38.784376263 +0000 +++ 1743.ret.result 2024-07-18 15:12:38.784376263 +0000 @@ -1 +1 @@ -aaa4 +aaa3 lib/test-util.sh:1484: ble/alias#expand aaa2 --- 1743.ret.expect 2024-07-18 15:12:38.820376401 +0000 +++ 1743.ret.result 2024-07-18 15:12:38.820376401 +0000 @@ -1 +1 @@ -aaa3 hello +aaa2 lib/test-util.sh:1485: ble/alias#expand aaa1 --- 1743.ret.expect 2024-07-18 15:12:38.852376523 +0000 +++ 1743.ret.result 2024-07-18 15:12:38.852376523 +0000 @@ -1 +1 @@ -aaa2 world +aaa1 lib/test-util.sh:1487: ble/alias#expand aaa4 --- 1743.ret.expect 2024-07-18 15:12:38.888376660 +0000 +++ 1743.ret.result 2024-07-18 15:12:38.888376660 +0000 @@ -1 +1 @@ -echo +aaa4 lib/test-util.sh:1488: ble/alias#expand aaa3 --- 1743.ret.expect 2024-07-18 15:12:38.928376813 +0000 +++ 1743.ret.result 2024-07-18 15:12:38.928376813 +0000 @@ -1 +1 @@ -aaa4 +aaa3 lib/test-util.sh:1489: ble/alias#expand aaa2 --- 1743.ret.expect 2024-07-18 15:12:38.964376950 +0000 +++ 1743.ret.result 2024-07-18 15:12:38.964376950 +0000 @@ -1 +1 @@ -aaa3 hello +aaa2 lib/test-util.sh:1490: ble/alias#expand aaa1 --- 1743.ret.expect 2024-07-18 15:12:39.000377087 +0000 +++ 1743.ret.result 2024-07-18 15:12:39.000377087 +0000 @@ -1 +1 @@ -aaa2 world +aaa1 lib/test-util.sh:1582: declare -p v2a xv2a | cat -v >&2; [[ $v2a == $xv2a ]] --- 1782.exit.expect 2024-07-18 15:12:39.516379054 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.516379054 +0000 @@ -1 +1 @@ -0 +1 declare -- xv2a=a lib/test-util.sh:1582: declare -p v2b xv2b | cat -v >&2; [[ $v2b == $xv2b ]] --- 1782.exit.expect 2024-07-18 15:12:39.556379206 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.556379206 +0000 @@ -1 +1 @@ -0 +1 declare -- xv2b=ab lib/test-util.sh:1582: declare -p v3a xv3a | cat -v >&2; [[ $v3a == $xv3a ]] --- 1782.exit.expect 2024-07-18 15:12:39.600379374 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.600379374 +0000 @@ -1 +1 @@ -0 +1 declare -- xv3a=' ' lib/test-util.sh:1582: declare -p v3b xv3b | cat -v >&2; [[ $v3b == $xv3b ]] --- 1782.exit.expect 2024-07-18 15:12:39.644379542 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.644379542 +0000 @@ -1 +1 @@ -0 +1 declare -- xv3b='a b' lib/test-util.sh:1582: declare -p v4a xv4a | cat -v >&2; [[ $v4a == $xv4a ]] --- 1782.exit.expect 2024-07-18 15:12:39.688379710 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.688379710 +0000 @@ -1 +1 @@ -0 +1 declare -- xv4a=$'\n' lib/test-util.sh:1582: declare -p v4b xv4b | cat -v >&2; [[ $v4b == $xv4b ]] --- 1782.exit.expect 2024-07-18 15:12:39.732379877 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.732379877 +0000 @@ -1 +1 @@ -0 +1 declare -- xv4b=$'a\nb' lib/test-util.sh:1582: declare -p v5a xv5a | cat -v >&2; [[ $v5a == $xv5a ]] --- 1782.exit.expect 2024-07-18 15:12:39.776380045 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.776380045 +0000 @@ -1 +1 @@ -0 +1 declare -- xv5a=$'\r' lib/test-util.sh:1582: declare -p v5b xv5b | cat -v >&2; [[ $v5b == $xv5b ]] --- 1782.exit.expect 2024-07-18 15:12:39.820380213 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.820380213 +0000 @@ -1 +1 @@ -0 +1 declare -- xv5b=$'a\rb' lib/test-util.sh:1582: declare -p v6a xv6a | cat -v >&2; [[ $v6a == $xv6a ]] --- 1782.exit.expect 2024-07-18 15:12:39.860380365 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.860380365 +0000 @@ -1 +1 @@ -0 +1 declare -- xv6a=$'\u0001' lib/test-util.sh:1582: declare -p v6b xv6b | cat -v >&2; [[ $v6b == $xv6b ]] --- 1782.exit.expect 2024-07-18 15:12:39.904380533 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.904380533 +0000 @@ -1 +1 @@ -0 +1 declare -- xv6b=$'a\u0001b' lib/test-util.sh:1582: declare -p v7a xv7a | cat -v >&2; [[ $v7a == $xv7a ]] --- 1782.exit.expect 2024-07-18 15:12:39.952380716 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.952380716 +0000 @@ -1 +1 @@ -0 +1 declare -- xv7a=$'\u0002' lib/test-util.sh:1582: declare -p v7b xv7b | cat -v >&2; [[ $v7b == $xv7b ]] --- 1782.exit.expect 2024-07-18 15:12:39.996380884 +0000 +++ 1782.exit.result 2024-07-18 15:12:39.996380884 +0000 @@ -1 +1 @@ -0 +1 declare -- xv7b=$'a\u0002b' lib/test-util.sh:1582: declare -p v8a xv8a | cat -v >&2; [[ $v8a == $xv8a ]] --- 1782.exit.expect 2024-07-18 15:12:40.040381051 +0000 +++ 1782.exit.result 2024-07-18 15:12:40.040381051 +0000 @@ -1 +1 @@ -0 +1 declare -- xv8a='^?' lib/test-util.sh:1582: declare -p v8b xv8b | cat -v >&2; [[ $v8b == $xv8b ]] --- 1782.exit.expect 2024-07-18 15:12:40.084381219 +0000 +++ 1782.exit.result 2024-07-18 15:12:40.088381234 +0000 @@ -1 +1 @@ -0 +1 declare -- xv8b='a^?b' lib/test-util.sh:1604: status a1 --- 1782.ret.expect 2024-07-18 15:12:40.164381524 +0000 +++ 1782.ret.result 2024-07-18 15:12:40.164381524 +0000 @@ -1 +1 @@ -1:() +0:() lib/test-util.sh:1604: status a2 --- 1782.ret.expect 2024-07-18 15:12:40.200381661 +0000 +++ 1782.ret.result 2024-07-18 15:12:40.200381661 +0000 @@ -1 +1 @@ -2:(a ab) +0:() lib/test-util.sh:1604: status a3 --- 1782.ret.expect 2024-07-18 15:12:40.232381783 +0000 +++ 1782.ret.result 2024-07-18 15:12:40.236381798 +0000 @@ -1 +1 @@ -2:( a b) +0:() lib/test-util.sh:1604: status a4 --- 1782.ret.expect 2024-07-18 15:12:40.268381920 +0000 +++ 1782.ret.result 2024-07-18 15:12:40.268381920 +0000 @@ -1,3 +1 @@ -2:( - a -b) +0:() lib/test-util.sh:1604: status a5 --- 1782.ret.expect 2024-07-18 15:12:40.304382058 +0000 +++ 1782.ret.result 2024-07-18 15:12:40.304382058 +0000 @@ -1 +1 @@ -2:( a b) +0:() lib/test-util.sh:1604: status a6 --- 1782.ret.expect 2024-07-18 15:12:40.336382180 +0000 +++ 1782.ret.result 2024-07-18 15:12:40.340382195 +0000 @@ -1 +1 @@ -2:( ab) +0:() lib/test-util.sh:1604: status a7 --- 1782.ret.expect 2024-07-18 15:12:40.372382317 +0000 +++ 1782.ret.result 2024-07-18 15:12:40.372382317 +0000 @@ -1 +1 @@ -2:( ab) +0:() lib/test-util.sh:1604: status a8 --- 1782.ret.expect 2024-07-18 15:12:40.404382439 +0000 +++ 1782.ret.result 2024-07-18 15:12:40.408382454 +0000 @@ -1 +1 @@ -2:( ab) +0:() lib/test-util.sh:1615: [[ ! ${v0+set} ]] --- 1863.exit.expect 2024-07-18 15:12:40.484382744 +0000 +++ 1863.exit.result 2024-07-18 15:12:40.484382744 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:1616: status v1 --- 1863.stdout.expect 2024-07-18 15:12:40.516382866 +0000 +++ 1863.stdout.result 2024-07-18 15:12:40.520382881 +0000 @@ -1 +1 @@ -1:(123) +1:(2) lib/test-util.sh:1617: status v2 --- 1863.stdout.expect 2024-07-18 15:12:40.552383003 +0000 +++ 1863.stdout.result 2024-07-18 15:12:40.552383003 +0000 @@ -1 +1 @@ -3:(1 2 3) +1:(3) lib/test-util.sh:1618: status v3 --- 1863.stdout.expect 2024-07-18 15:12:40.584383125 +0000 +++ 1863.stdout.result 2024-07-18 15:12:40.584383125 +0000 @@ -1 +1 @@ -1:(bbb) +3:(bbb) lib/test-util.sh:1619: status v4 --- 1863.stdout.expect 2024-07-18 15:12:40.620383262 +0000 +++ 1863.stdout.result 2024-07-18 15:12:40.620383262 +0000 @@ -1 +1 @@ -1:(ccc) +1:(5) lib/test-util.sh:1631: ble/util/print-global-definitions value --- 1863.stdout.expect 2024-07-18 15:12:40.688383521 +0000 +++ 1863.stdout.result 2024-07-18 15:12:40.688383521 +0000 @@ -1 +1 @@ -declare value='hello '\''world'\''' +declare value; builtin unset -v value lib/test-util.sh:1668: shopt -q failglob --- 1880.exit.expect 2024-07-18 15:12:40.968384589 +0000 +++ 1880.exit.result 2024-07-18 15:12:40.968384589 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:1669: shopt -q nullglob --- 1880.exit.expect 2024-07-18 15:12:41.004384726 +0000 +++ 1880.exit.result 2024-07-18 15:12:41.004384726 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:1670: shopt -q extglob --- 1880.exit.expect 2024-07-18 15:12:41.036384848 +0000 +++ 1880.exit.result 2024-07-18 15:12:41.036384848 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:1681: ble-measure -q "ble/util/msleep 100"; echo "$ret usec" >&2; ((msec=ret/1000,90<=msec&&msec<=120)) --- 1890.exit.expect 2024-07-18 15:12:41.292385824 +0000 +++ 1890.exit.result 2024-07-18 15:12:41.296385839 +0000 @@ -1 +1 @@ -0 +1 0 usec lib/test-util.sh:1682: ble-measure -q "ble/util/sleep 0.1"; echo "$ret usec" >&2; ((msec=ret/1000,90<=msec&&msec<=120)) --- 1890.exit.expect 2024-07-18 15:12:41.45238644 ble/function#push/0:ble/util/msleep ^~~ [ eval word at line 4396 of out/ble.osh ]:1 builtin eval -- "$1"; local ext=$? ^~~~ out/ble.osh:4396: 'ble/function#push/0:ble/util/msleep' not found (OILS-ERR-100) set -m; ble/bin/sleep 10 & pid3=$!; set +m ^~ lib/test-util.sh:1700: 'set' got invalid flag '-m' set -m; ble/bin/sleep 10 & pid3=$!; set +m ^ lib/test-util.sh:1700: 'set' got invalid flag '-m' 0 +0000 +++ 1890.exit.result 2024-07-18 15:12:41.452386440 +0000 @@ -1 +1 @@ -0 +1 0 usec lib/test-util.sh:1690: ble/util/conditional-sync 'ble/bin/sleep 10' '((time<1000))' 100 --- 1897.stdout.expect 2024-07-18 15:12:51.536424895 +0000 +++ 1897.stdout.result 2024-07-18 15:12:51.536424895 +0000 @@ -1,10 +1 @@ 100 -200 -300 -400 -500 -600 -700 -800 -900 -1000 [1] Done PID 1899 lib/test-util.sh:1692: ble/util/conditional-sync 'ble/bin/sleep 10' '((time<1000))' 100 progressive-weight --- 1897.stdout.expect 2024-07-18 15:13:01.600464835 +0000 +++ 1897.stdout.result 2024-07-18 15:13:01.600464835 +0000 @@ -1,16 +1 @@ 1 -3 -7 -15 -31 -63 -127 -227 -327 -427 -527 -627 -727 -827 -927 -1027 [1] Done PID 1904 lib/test-util.sh:1694: ble/util/conditional-sync 'ble/bin/sleep 10' 'true' 100 timeout=10 --- 1897.exit.expect 2024-07-18 15:13:11.656509170 +0000 +++ 1897.exit.result 2024-07-18 15:13:11.656509170 +0000 @@ -1 +1 @@ -142 +0 [1] Done PID 1909 lib/test-util.sh:1709: kill -0 "$pid1" --- 1897.exit.expect 2024-07-18 15:13:11.800509836 +0000 +++ 1897.exit.result 2024-07-18 15:13:11.800509836 +0000 @@ -1 +1 @@ -1 +0 lib/test-util.sh:1710: kill -0 "$pid2" --- 1897.exit.expect 2024-07-18 15:13:11.836510003 +0000 +++ 1897.exit.result 2024-07-18 15:13:11.840510022 +0000 @@ -1 +1 @@ -1 +0 lib/test-util.sh:1711: kill -0 "$pid3" --- 1897.exit.expect 2024-07-18 15:13:11.876510188 +0000 +++ 1897.exit.result 2024-07-18 15:13:11.876510188 +0000 @@ -1 +1 @@ -1 +0 lib/test-util.sh:1736: ble/util/get-pager ret --- 1951.ret.expect 2024-07-18 15:13:12.136511391 +0000 +++ 1951.ret.result 2024-07-18 15:13:12.136511391 +0000 @@ -1 +1 @@ -less +pager lib/test-util.sh:1758: ble/util/buffer.flush --- 1956.stdout.expect 2024-07-18 15:13:12.220511780 +0000 +++ 1956.stdout.result 2024-07-18 15:13:12.220511780 +0000 @@ -1 +1 @@ -helloworld + lib/test-util.sh:1762: ble/util/buffer.flush --- 1956.stdout.expect 2024-07-18 15:13:12.268512002 +0000 +++ 1956.stdout.result 2024-07-18 15:13:12.268512002 +0000 @@ -1,2 +1 @@ -hello -world + lib/test-util.sh:1958: ble/util/c2s 956; [[ $ret != μ ]] --- 1962.exit.expect 2024-07-18 15:13:12.808514501 +0000 +++ 1962.exit.result 2024-07-18 15:13:12.808514501 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:1959: ble/util/c2s 12354; [[ $ret != あ ]] --- 1962.exit.expect 2024-07-18 15:13:12.844514668 +0000 +++ 1962.exit.result 2024-07-18 15:13:12.844514668 +0000 @@ -1 +1 @@ -0 +1 lib/test-util.sh:1989: ble/util/chars2s --- 1968.ret.expect 2024-07-18 15:13:13.136516019 +0000 +++ 1968.ret.result 2024-07-18 15:13:13.140516038 +0000 @@ -1 +1 @@ - +12354 \\U%08x ^ [ printf word at line 10195 of out/ble.osh ]:1 lib/test-util.sh:2006: ble/util/keyseq2chars 'b\C-@c'; ret="${ret[*]}" --- 1971.ret.expect 2024-07-18 15:13:14.144520684 +0000 +++ 1971.ret.result 2024-07-18 15:13:14.144520684 +0000 @@ -1 +1 @@ -98 0 99 +98 0 lib/test-util.sh:2006: ble/util/keyseq2chars 'b\C-ac'; ret="${ret[*]}" --- 1971.ret.expect 2024-07-18 15:13:14.244521147 +0000 +++ 1971.ret.result 2024-07-18 15:13:14.244521147 +0000 @@ -1 +1 @@ -98 1 99 +98 1 lib/test-util.sh:2006: ble/util/keyseq2chars 'b\C-zc'; ret="${ret[*]}" --- 1971.ret.expect 2024-07-18 15:13:14.348521656 +0000 +++ 1971.ret.result 2024-07-18 15:13:14.348521656 +0000 @@ -1 +1 @@ -98 26 99 +98 26 lib/test-util.sh:2006: ble/util/keyseq2chars 'b\C-]c'; ret="${ret[*]}" --- 1971.ret.expect 2024-07-18 15:13:14.448522404 +0000 +++ 1971.ret.result 2024-07-18 15:13:14.448522404 +0000 @@ -1 +1 @@ -98 29 99 +98 29 lib/test-util.sh:2006: ble/util/keyseq2chars 'b\C-^c'; ret="${ret[*]}" --- 1971.ret.expect 2024-07-18 15:13:14.548523152 +0000 +++ 1971.ret.result 2024-07-18 15:13:14.548523152 +0000 @@ -1 +1 @@ -98 30 99 +98 30 lib/test-util.sh:2006: ble/util/keyseq2chars 'b\C-_c'; ret="${ret[*]}" --- 1971.ret.expect 2024-07-18 15:13:14.648523900 +0000 +++ 1971.ret.result 2024-07-18 15:13:14.648523900 +0000 @@ -1 +1 @@ -98 31 99 +98 31 lib/test-util.sh:2006: ble/util/keyseq2chars 'b\M-\C-@c'; retreal 52.080 user 0.540 sys 0.136 real 0.524 user 0.040 sys 0.000 ="${ret[*]}" --- 1971.ret.expect 2024-07-18 15:13:14.752524678 +0000 +++ 1971.ret.result 2024-07-18 15:13:14.752524678 +0000 @@ -1 +1 @@ -98 27 0 99 +98 27 0 89.4% [section] ble/util: 1099/1228 (129 fail, 0 crash, 6 skip) DONE Running lib/test-util.sh Running lib/test-decode.sh 100.0% [section] ble/decode: 33/33 (0 fail, 0 crash, 0 skip) DONE Running lib/test-decode.sh ~/oil DONE