~/oil/_clone/ble.sh ~/oil
ble.sh: insane environment: $USER is empty.
ble.sh: modified USER=uke
ble.sh: suspicious environment: $LANG is empty.
  shopt -s checkwinsize
  ^~~~~
out/ble.osh:2815: 'shopt' got invalid option 'checkwinsize'
ble/term.sh: updating tput cache for TERM=xterm... 
ble/term.sh: updating tput cache for TERM=xterm... done
osh warning: The 'RETURN' hook isn't implemented
real	8.024
user	7.708
sys	0.181
real	0.977
user	0.207
sys	0.017
    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 --lib


DONE Running out/ble.osh --lib


Running lib/test-main.sh

lib/test-main.sh:25: set -o posix; f2;                 ret=$?; set +o posix
--- 1086.ret.expect	2025-03-01 23:10:29.273896319 +0000
+++ 1086.ret.result	2025-03-01 23:10:29.273896319 +0000
@@ -1 +1 @@
-0
+1

lib/test-main.sh:57: ! ble/bin#has ble_test_dummy_4
--- 1090.exit.expect	2025-03-01 23:10:29.491898114 +0000
+++ 1090.exit.result	2025-03-01 23:10:29.492898122 +0000
@@ -1 +1 @@
-0
+1

lib/test-main.sh:88: 
    ble/util/readlink f.txt
    [[ $ret != /* ]] && ret=${PWD%/}/$ret
--- 1093.ret.expect	2025-03-01 23:10:29.619899168 +0000
+++ 1093.ret.result	2025-03-01 23:10:29.619899168 +0000
@@ -1 +1 @@
-/tmp/blesh/1000/999.test/1093.d/ab/cd/ef/file.txt
+/tmp/blesh/1000/999.test/1093.d/ef/file.txt

lib/test-main.sh:110: 
    path=phys.link/1.txt
    ble/util/readlink/.resolve-physical-directory
    declare -p path PWD >&2
    [[ $path == */phys.dir/1.txt && $PWD == "$pwd" ]]
--- 1093.exit.expect	2025-03-01 23:10:29.827900881 +0000
+++ 1093.exit.result	2025-03-01 23:10:29.827900881 +0000
@@ -1 +1 @@
-0
+1
<STDERR>
declare -- path=/tmp/blesh/1000/999.test/1093.d/1.txt
declare -x PWD=/tmp/blesh/1000/999.test/1093.d
</STDERR>

lib/test-main.sh:131: [[ ${value//$pattern/$'\n'} == $'\n'hello$'\n' ]]
--- 1126.exit.expect	2025-03-01 23:10:29.917901623 +0000
+++ 1126.exit.result	2025-03-01 23:10:29.917901623 +0000
@@ -1 +1 @@
-0
+1

 82.7% [section] ble/main: 24/29 (5 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
--- 1137.ret.expect	2025-03-01 23:10:31.351913433 +0000
+++ 1137.ret.result	2025-03-01 23:10:31.351913433 +0000
@@ -1 +1 @@
-i
+

lib/test-util.sh:191: ble/variable#get-attr x; ret=$attr
--- 1137.ret.expect	2025-03-01 23:10:31.386913721 +0000
+++ 1137.ret.result	2025-03-01 23:10:31.387913729 +0000
@@ -1 +1 @@
-x
+

lib/test-util.sh:192: ble/variable#get-attr r; ret=$attr
--- 1137.ret.expect	2025-03-01 23:10:31.421914010 +0000
+++ 1137.ret.result	2025-03-01 23:10:31.422914018 +0000
@@ -1 +1 @@
-r
+

lib/test-util.sh:195: ble/variable#get-attr u; ret=$attr
--- 1137.ret.expect	2025-03-01 23:10:31.468914397 +0000
+++ 1137.ret.result	2025-03-01 23:10:31.469914405 +0000
@@ -1 +1 @@
-u
+

lib/test-util.sh:196: ble/variable#get-attr l; ret=$attr
--- 1137.ret.expect	2025-03-01 23:10:31.504914693 +0000
+++ 1137.ret.result	2025-03-01 23:10:31.504914693 +0000
@@ -1 +1 @@
-l
+

lib/test-util.sh:197: ble/variable#get-attr c; ret=$attr
--- 1137.ret.expect	2025-03-01 23:10:31.538914973 +0000
+++ 1137.ret.result	2025-03-01 23:10:31.538914973 +0000
@@ -1 +1 @@
-c
+

lib/test-util.sh:203: ble/variable#has-attr i i
--- 1137.exit.expect	2025-03-01 23:10:31.584915352 +0000
+++ 1137.exit.result	2025-03-01 23:10:31.584915352 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:204: ble/variable#has-attr x x
--- 1137.exit.expect	2025-03-01 23:10:31.618915632 +0000
+++ 1137.exit.result	2025-03-01 23:10:31.619915640 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:205: ble/variable#has-attr r r
--- 1137.exit.expect	2025-03-01 23:10:31.653915920 +0000
+++ 1137.exit.result	2025-03-01 23:10:31.654915928 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:212: ble/variable#has-attr u u
--- 1137.exit.expect	2025-03-01 23:10:31.743916662 +0000
+++ 1137.exit.result	2025-03-01 23:10:31.744916670 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:213: ble/variable#has-attr l l
--- 1137.exit.expect	2025-03-01 23:10:31.777916941 +0000
+++ 1137.exit.result	2025-03-01 23:10:31.777916941 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:214: ble/variable#has-attr c c
--- 1137.exit.expect	2025-03-01 23:10:31.810917213 +0000
+++ 1137.exit.result	2025-03-01 23:10:31.811917222 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:226: ble/is-inttype i
--- 1137.exit.expect	2025-03-01 23:10:31.902917971 +0000
+++ 1137.exit.result	2025-03-01 23:10:31.903917979 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:228: ble/is-readonly r
--- 1137.exit.expect	2025-03-01 23:10:31.948918350 +0000
+++ 1137.exit.result	2025-03-01 23:10:31.949918358 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:231: ble/is-transformed u
--- 1137.exit.expect	2025-03-01 23:10:31.994918729 +0000
+++ 1137.exit.result	2025-03-01 23:10:31.994918729 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:232: ble/is-transformed l
--- 1137.exit.expect	2025-03-01 23:10:32.027919000 +0000
+++ 1137.exit.result	2025-03-01 23:10:32.027919000 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:233: ble/is-transformed c
--- 1137.exit.expect	2025-03-01 23:10:32.060919272 +0000
+++ 1137.exit.result	2025-03-01 23:10:32.061919281 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:251: is-global v0
--- 1172.exit.expect	2025-03-01 23:10:32.123919791 +0000
+++ 1172.exit.result	2025-03-01 23:10:32.123919791 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:252: is-global v1
--- 1172.exit.expect	2025-03-01 23:10:32.161920104 +0000
+++ 1172.exit.result	2025-03-01 23:10:32.162920112 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:257: ble/variable#is-global v0
--- 1172.exit.expect	2025-03-01 23:10:32.252920854 +0000
+++ 1172.exit.result	2025-03-01 23:10:32.252920854 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:258: ble/variable#is-global v1
--- 1172.exit.expect	2025-03-01 23:10:32.290921166 +0000
+++ 1172.exit.result	2025-03-01 23:10:32.291921175 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:263: ble/variable#is-global v0u
--- 1172.exit.expect	2025-03-01 23:10:32.386921957 +0000
+++ 1172.exit.result	2025-03-01 23:10:32.386921957 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:265: ble/variable#is-global v1u
--- 1172.exit.expect	2025-03-01 23:10:32.426922287 +0000
+++ 1172.exit.result	2025-03-01 23:10:32.426922287 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:597: ble/string#split-lines a ""  ; status
--- 1220.stdout.expect	2025-03-01 23:10:34.544939798 +0000
+++ 1220.stdout.result	2025-03-01 23:10:34.545939807 +0000
@@ -1 +1 @@
-1:()
+0:()

lib/test-util.sh:599: ble/string#split-lines a "
"  ; status
--- 1220.stdout.expect	2025-03-01 23:10:34.592940196 +0000
+++ 1220.stdout.result	2025-03-01 23:10:34.593940205 +0000
@@ -1 +1 @@
-2:( )
+0:()

lib/test-util.sh:600: ble/string#split-lines a "1
"  ; status
--- 1220.stdout.expect	2025-03-01 23:10:34.627940486 +0000
+++ 1220.stdout.result	2025-03-01 23:10:34.627940486 +0000
@@ -1 +1 @@
-2:(1 )
+1:(1)

lib/test-util.sh:601: ble/string#split-lines a "
2"  ; status
--- 1220.stdout.expect	2025-03-01 23:10:34.662940777 +0000
+++ 1220.stdout.result	2025-03-01 23:10:34.662940777 +0000
@@ -1 +1 @@
-2:( 2)
+0:()

lib/test-util.sh:602: ble/string#split-lines a "1

3"  ; status
--- 1220.stdout.expect	2025-03-01 23:10:34.697941067 +0000
+++ 1220.stdout.result	2025-03-01 23:10:34.697941067 +0000
@@ -1 +1 @@
-3:(1  3)
+1:(1)

lib/test-util.sh:782: ble/string#quote-command echo hello world
--- 1238.ret.expect	2025-03-01 23:10:36.455955645 +0000
+++ 1238.ret.result	2025-03-01 23:10:36.456955653 +0000
@@ -1 +1 @@
-echo 'hello' 'world'
+echo hello world

lib/test-util.sh:784: ble/string#quote-command echo "'test'"
--- 1238.ret.expect	2025-03-01 23:10:36.500956018 +0000
+++ 1238.ret.result	2025-03-01 23:10:36.501956026 +0000
@@ -1 +1 @@
-echo ''\''test'\'''
+echo $'\'test\''

lib/test-util.sh:786: ble/string#quote-command echo a{1..4}
--- 1238.ret.expect	2025-03-01 23:10:36.545956391 +0000
+++ 1238.ret.result	2025-03-01 23:10:36.546956399 +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
--- 1238.stdout.expect	2025-03-01 23:10:36.604956880 +0000
+++ 1238.stdout.result	2025-03-01 23:10:36.605956889 +0000
@@ -1 +1 @@
-echo 'hello' 'world'
+echo hello world

lib/test-util.sh:792: ble/util/print-quoted-command echo "'test'"
--- 1238.stdout.expect	2025-03-01 23:10:36.650957262 +0000
+++ 1238.stdout.result	2025-03-01 23:10:36.651957270 +0000
@@ -1 +1 @@
-echo ''\''test'\'''
+echo $'\'test\''

lib/test-util.sh:794: ble/util/print-quoted-command echo a{1..4}
--- 1238.stdout.expect	2025-03-01 23:10:36.698957660 +0000
+++ 1238.stdout.result	2025-03-01 23:10:36.699957668 +0000
@@ -1 +1 @@
-echo 'a1' 'a2' 'a3' 'a4'
+echo a1 a2 a3 a4

lib/test-util.sh:843: ble/util/strlen α
--- 1253.ret.expect	2025-  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
03-01 23:10:37.367963207 +0000
+++ 1253.ret.result	2025-03-01 23:10:37.367963207 +0000
@@ -1 +1 @@
-2
+1

lib/test-util.sh:844: ble/util/strlen αβγ
--- 1253.ret.expect	2025-03-01 23:10:37.402963498 +0000
+++ 1253.ret.result	2025-03-01 23:10:37.402963498 +0000
@@ -1 +1 @@
-6
+3

lib/test-util.sh:845: ble/util/strlen あ
--- 1253.ret.expect	2025-03-01 23:10:37.435963771 +0000
+++ 1253.ret.result	2025-03-01 23:10:37.436963780 +0000
@@ -1 +1 @@
-3
+1

lib/test-util.sh:846: ble/util/strlen あいう
--- 1253.ret.expect	2025-03-01 23:10:37.469964053 +0000
+++ 1253.ret.result	2025-03-01 23:10:37.469964053 +0000
@@ -1 +1 @@
-9
+3

lib/test-util.sh:847: ble/util/strlen aα
--- 1253.ret.expect	2025-03-01 23:10:37.503964335 +0000
+++ 1253.ret.result	2025-03-01 23:10:37.503964335 +0000
@@ -1 +1 @@
-3
+2

lib/test-util.sh:848: ble/util/strlen aαあ
--- 1253.ret.expect	2025-03-01 23:10:37.537964617 +0000
+++ 1253.ret.result	2025-03-01 23:10:37.538964625 +0000
@@ -1 +1 @@
-6
+3

lib/test-util.sh:852: ble/util/strlen α
--- 1253.ret.expect	2025-03-01 23:10:37.592965073 +0000
+++ 1253.ret.result	2025-03-01 23:10:37.593965081 +0000
@@ -1 +1 @@
-2
+1

lib/test-util.sh:853: ble/util/strlen あ
--- 1253.ret.expect	2025-03-01 23:10:37.629965380 +0000
+++ 1253.ret.result	2025-03-01 23:10:37.630965388 +0000
@@ -1 +1 @@
-3
+1

lib/test-util.sh:885: ble/util/substr あいう 0 3
--- 1270.ret.expect	2025-03-01 23:10:37.981968299 +0000
+++ 1270.ret.result	2025-03-01 23:10:37.982968307 +0000
@@ -1 +1 @@
-あ
+あいう

lib/test-util.sh:886: ble/util/substr あいう 3 6
--- 1270.ret.expect	2025-03-01 23:10:38.015968581 +0000
+++ 1270.ret.result	2025-03-01 23:10:38.016968589 +0000
@@ -1 +1 @@
-いう
+

lib/test-util.sh:1243: ble/util/mapfile a < <(echo); status
--- 1280.stdout.expect	2025-03-01 23:10:42.725007659 +0000
+++ 1280.stdout.result	2025-03-01 23:10:42.726007667 +0000
@@ -1 +1 @@
-1:()
+0:()

lib/test-util.sh:1244: ble/util/mapfile a < <(echo;echo); status
--- 1280.stdout.expect	2025-03-01 23:10:42.763007974 +0000
+++ 1280.stdout.result	2025-03-01 23:10:42.764007983 +0000
@@ -1 +1 @@
-2:( )
+0:()

lib/test-util.sh:1245: ble/util/mapfile a < <(echo a;echo;echo b); status
--- 1280.stdout.expect	2025-03-01 23:10:42.800008282 +0000
+++ 1280.stdout.result	2025-03-01 23:10:42.801008290 +0000
@@ -1 +1 @@
-3:(a  b)
+1:(a)

lib/test-util.sh:1263: ble/util/assign-array a echo; status
--- 1280.stdout.expect	2025-03-01 23:10:42.944009479 +0000
+++ 1280.stdout.result	2025-03-01 23:10:42.945009487 +0000
@@ -1 +1 @@
-1:()
+0:()

lib/test-util.sh:1266: ble/util/assign-array a "echo; echo; echo"; status
--- 1280.stdout.expect	2025-03-01 23:10:43.014010061 +0000
+++ 1280.stdout.result	2025-03-01 23:10:43.015010069 +0000
@@ -1 +1 @@
-3:(  )
+0:()

lib/test-util.sh:1267: ble/util/assign-array a "echo 1; echo; echo 2"; status
--- 1280.stdout.expect	2025-03-01 23:10:43.051010369 +0000
+++ 1280.stdout.result	2025-03-01 23:10:43.051010369 +0000
@@ -1 +1 @@
-3:(1  2)
+1:(1)

lib/test-util.sh:1364: f1
--- 1364.stdout.expect	2025-03-01 23:10:44.093019032 +0000
+++ 1364.stdout.result	2025-03-01 23:10:44.094019040 +0000
@@ -1,2 +1 @@
 pre
-original
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1366: f1
--- 1364.stdout.expect	2025-03-01 23:10:44.166019638 +0000
+++ 1364.stdout.result	2025-03-01 23:10:44.166019638 +0000
@@ -1,3 +1,2 @@
 pre
-original
 post
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1368: f1
--- 1364.stdout.expect	2025-03-01 23:10:44.238020237 +0000
+++ 1364.stdout.result	2025-03-01 23:10:44.239020245 +0000
@@ -1,3 +1,2 @@
 A
-original
 post
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1370: f1
--- 1364.stdout.expect	2025-03-01 23:10:44.318020902 +0000
+++ 1364.st  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#push/0:echo
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:echo' not found (OILS-ERR-100)
  ble/function#push/0:echo
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:echo' not found (OILS-ERR-100)
  ble/function#push/0:echo
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: '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.
dout.result	2025-03-01 23:10:44.318020902 +0000
@@ -1,3 +1,2 @@
 A
-original
 B
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1372: f1
--- 1364.stdout.expect	2025-03-01 23:10:44.394021534 +0000
+++ 1364.stdout.result	2025-03-01 23:10:44.395021542 +0000
@@ -1,5 +1,4 @@
 A
 [
-original
 ]
 B
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1378: f1
--- 1364.stdout.expect	2025-03-01 23:10:44.472022182 +0000
+++ 1364.stdout.result	2025-03-01 23:10:44.473022191 +0000
@@ -1,5 +1,4 @@
 A
 [
-original quick
 ]
 B
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1381: f1
--- 1364.stdout.expect	2025-03-01 23:10:44.525022623 +0000
+++ 1364.stdout.result	2025-03-01 23:10:44.525022623 +0000
@@ -1 +1 @@
-original
+
--- 1364.exit.expect	2025-03-01 23:10:44.544022781 +0000
+++ 1364.exit.result	2025-03-01 23:10:44.545022789 +0000
@@ -1 +1 @@
-0
+127
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1382: f1 1
--- 1364.stdout.expect	2025-03-01 23:10:44.592023180 +0000
+++ 1364.stdout.result	2025-03-01 23:10:44.592023180 +0000
@@ -1 +1 @@
-original 1
+
--- 1364.exit.expect	2025-03-01 23:10:44.612023346 +0000
+++ 1364.exit.result	2025-03-01 23:10:44.612023346 +0000
@@ -1 +1 @@
-0
+127
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1395: echo 1 2 3
--- 1385.stdout.expect	2025-03-01 23:10:44.741024419 +0000
+++ 1385.stdout.result	2025-03-01 23:10:44.741024419 +0000
@@ -1,3 +1,3 @@
 A
-(1 2 3)
+1 2 3
 Z

lib/test-util.sh:1397: echo 1 2 3
--- 1385.stdout.expect	2025-03-01 23:10:44.789024818 +0000
+++ 1385.stdout.result	2025-03-01 23:10:44.790024826 +0000
@@ -1,5 +1,3 @@
 [
-A
-(1 2 3)
-Z
+1 2 3
 ]

lib/test-util.sh:1400: echo 1 2 3
--- 1385.stdout.expect	2025-03-01 23:10:44.836025208 +0000
+++ 1385.stdout.result	2025-03-01 23:10:44.837025217 +0000
@@ -1,3 +1 @@
-A
-(1 2 3)
-Z
+1 2 3

lib/test-util.sh:1402: echo 1 2 3
--- 1385.stdout.expect	2025-03-01 23:10:44.873025516 +0000
+++ 1385.stdout.result	2025-03-01 23:10:44.874025524 +0000
@@ -1 +1 @@
-(1 2 3)
+1 2 3

lib/test-util.sh:1404: echo 1 2 3
--- 1385.stdout.expect	2025-03-01 23:10:44.909025815 +0000
+++ 1385.stdout.result	2025-03-01 23:10:44.910025824 +0000
@@ -1 +1 @@
-[1 2 3]
+1 2 3

lib/test-util.sh:1405: ble/is-function echo
--- 1385.exit.expect	2025-03-01 23:10:44.943026098 +0000
+++ 1385.exit.result	2025-03-01 23:10:44.944026106 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:1406: ble/function#pop echo
--- 1385.exit.expect	2025-03-01 23:10:44.979026397 +0000
+++ 1385.exit.result	2025-03-01 23:10:44.979026397 +0000
@@ -1 +1 @@
-0
+1
<STDERR>
ble/function#pop: echo is not a function.
</STDERR>

lib/test-util.sh:1443: ble/util/sprintf ret "[%#.2g]" 27
--- 1401.ret.expect	2025-03-01 23:10:45.244028600 +0000
+++ 1401.ret.result	2025-03-01 23:10:45.244028600 +0000
@@ -1 +1 @@
-[27.]
+[1b]
<STDERR>
  [%#.2g]
    ^
[ printf arg at line 5263 of out/ble.osh ]:1
</STDERR>

lib/test-util.sh:1444: ble/util/sprintf ret "[%#.2f]" 27
--- 1401.ret.expect	2025-03-01 23:10:45.281028908 +0000
+++ 1401.ret.result	2025-03-01 23:10:45.281028908 +0000
@@ -1 +1 @@
-[27.00]
+[1b]
<STDERR>
  [%#.2f]
    ^
[ printf arg at line 5263 of out/ble.osh ]:1
</STDERR>

lib/test-util.sh:1482: ble/alias#expand aaa1
--- 1407.ret.expect	2025-03-01 23:10:45.506030778 +0000
+++ 1407.ret.result	2025-03-01 23:10:45.507030787 +0000
@@ -1 +1 @@
-aaa2 world
+aaa1

lib/test-util.sh:1484: ble/alias#expand aaa2
--- 1407.ret.expect	2025-03-01 23:10:45.541031069 +0000
+++ 1407.ret.result	2025-03-01 23:10:45.5420310    elif [[ -t ${!1} ]]; then
               ^~
out/ble.osh:5825: fatal: Invalid file descriptor ''
  ble/function#push/0:ble/util/msleep
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:ble/util/msleep' not found (OILS-ERR-100)
78 +0000
@@ -1 +1 @@
-aaa3 hello
+aaa2

lib/test-util.sh:1485: ble/alias#expand aaa1
--- 1407.ret.expect	2025-03-01 23:10:45.575031352 +0000
+++ 1407.ret.result	2025-03-01 23:10:45.575031352 +0000
@@ -1 +1 @@
-aaa2 world
+aaa1

lib/test-util.sh:1487: ble/alias#expand aaa3
--- 1407.ret.expect	2025-03-01 23:10:45.608031627 +0000
+++ 1407.ret.result	2025-03-01 23:10:45.609031635 +0000
@@ -1 +1 @@
-aaa4
+aaa3

lib/test-util.sh:1488: ble/alias#expand aaa2
--- 1407.ret.expect	2025-03-01 23:10:45.642031909 +0000
+++ 1407.ret.result	2025-03-01 23:10:45.643031917 +0000
@@ -1 +1 @@
-aaa3 hello
+aaa2

lib/test-util.sh:1489: ble/alias#expand aaa1
--- 1407.ret.expect	2025-03-01 23:10:45.677032200 +0000
+++ 1407.ret.result	2025-03-01 23:10:45.677032200 +0000
@@ -1 +1 @@
-aaa2 world
+aaa1

lib/test-util.sh:1491: ble/alias#expand aaa4
--- 1407.ret.expect	2025-03-01 23:10:45.710032475 +0000
+++ 1407.ret.result	2025-03-01 23:10:45.711032483 +0000
@@ -1 +1 @@
-echo
+aaa4

lib/test-util.sh:1492: ble/alias#expand aaa3
--- 1407.ret.expect	2025-03-01 23:10:45.744032757 +0000
+++ 1407.ret.result	2025-03-01 23:10:45.745032765 +0000
@@ -1 +1 @@
-aaa4
+aaa3

lib/test-util.sh:1493: ble/alias#expand aaa2
--- 1407.ret.expect	2025-03-01 23:10:45.778033040 +0000
+++ 1407.ret.result	2025-03-01 23:10:45.779033048 +0000
@@ -1 +1 @@
-aaa3 hello
+aaa2

lib/test-util.sh:1494: ble/alias#expand aaa1
--- 1407.ret.expect	2025-03-01 23:10:45.811033314 +0000
+++ 1407.ret.result	2025-03-01 23:10:45.812033323 +0000
@@ -1 +1 @@
-aaa2 world
+aaa1

lib/test-util.sh:1619: [[ ! ${v0+set} ]]
--- 1481.exit.expect	2025-03-01 23:10:46.789041445 +0000
+++ 1481.exit.result	2025-03-01 23:10:46.789041445 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:1620: status v1
--- 1481.stdout.expect	2025-03-01 23:10:46.825041744 +0000
+++ 1481.stdout.result	2025-03-01 23:10:46.825041744 +0000
@@ -1 +1 @@
-1:(123)
+1:(2)

lib/test-util.sh:1621: status v2
--- 1481.stdout.expect	2025-03-01 23:10:46.859042027 +0000
+++ 1481.stdout.result	2025-03-01 23:10:46.859042027 +0000
@@ -1 +1 @@
-3:(1 2 3)
+1:(3)

lib/test-util.sh:1622: status v3
--- 1481.stdout.expect	2025-03-01 23:10:46.893042309 +0000
+++ 1481.stdout.result	2025-03-01 23:10:46.894042318 +0000
@@ -1 +1 @@
-1:(bbb)
+3:(bbb)

lib/test-util.sh:1623: status v4
--- 1481.stdout.expect	2025-03-01 23:10:46.928042600 +0000
+++ 1481.stdout.result	2025-03-01 23:10:46.929042609 +0000
@@ -1 +1 @@
-1:(ccc)
+1:(5)

lib/test-util.sh:1635: ble/util/print-global-definitions value
--- 1481.stdout.expect	2025-03-01 23:10:47.001043207 +0000
+++ 1481.stdout.result	2025-03-01 23:10:47.001043207 +0000
@@ -1 +1 @@
-declare value='hello '\''world'\'''
+declare value; builtin unset -v value

lib/test-util.sh:1672: shopt -q failglob
--- 1498.exit.expect	2025-03-01 23:10:47.294045643 +0000
+++ 1498.exit.result	2025-03-01 23:10:47.294045643 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:1673: shopt -q nullglob
--- 1498.exit.expect	2025-03-01 23:10:47.326045909 +0000
+++ 1498.exit.result	2025-03-01 23:10:47.326045909 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:1674: shopt -q extglob
--- 1498.exit.expect	2025-03-01 23:10:47.358046175 +0000
+++ 1498.exit.result	2025-03-01 23:10:47.358046175 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:1685: ble-measure -q "ble/util/msleep 100"; echo "$ret usec" >&2; ((msec=ret/1000,90<=msec&&msec<=120))
--- 1508.exit.expect	2025-03-01 23:10:47.618048337 +0000
+++ 1508.exit.result	2025-03-01 23:10:47.619048345 +0000
@@ -1 +1 @@
-0
+1
<STDERR>
0 usec
</STDERR>

lib/test-util.sh:1686: ble-measure -q "ble/util/sleep 0.1"; echo "$ret usec" >&2; ((msec=ret/1000,90<=msec&&msec<=120))
--- 1508.exit.expect	2025-03-01 23:10:47.776049650 +0000
+++ 1508.exit.result	2025-03-01 23:10:47.776049650 +0000
@@ -1 +1 @@
-0
+1
<STDERR>
0 usec
</STDERR>

lib/test-util.sh:1694: ble/util/conditional-sync 'ble/bin/sleep 10' '((time<1000))' 100
--- 1515.stdout.expect	2025-03-01 23:10:57.859133256 +0000
+++ 1515.stdout.result	2025-03-01 23:10:57.860133264 +0000
@@ -1,10 +1 @@
 100
-200
-300
-400
-500
-600
-700
-800
-900
-1000
<STDERR>
[%1] PID 1517 Started
[%1] PID 1517 Done
[%1] PID 1531 Started
[%2] PID 1533 Started
    set -m; ble/bin/sleep 10 & pid3=$!; set +m
        ^~
lib/test-util.sh:1704: 'set' got invalid flag '-m'
[%3] PID 1535 Started
    set -m; ble/bin/sleep 10 & pid3=$!; set +m
                                            ^
lib/test-util.sh:1704: 'set' got invalid flag '-m'
  ble/function#push/0:ble/util/idle/IS_IDLE
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:ble/util/idle/IS_IDLE' not found (OILS-ERR-100)
  ble/function#push/0:ble/util/.test-utf8-locale
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:ble/util/.test-utf8-locale' not found (OILS-ERR-100)
real	53.648
user	0.593
sys	0.136
real	0.596
user	0.089
sys	0.009
</STDERR>

lib/test-util.sh:1696: ble/util/conditional-sync 'ble/bin/sleep 10' '((time<1000))' 100 progressive-weight
--- 1515.stdout.expect	2025-03-01 23:11:07.923216724 +0000
+++ 1515.stdout.result	2025-03-01 23:11:07.924216732 +0000
@@ -1,16 +1 @@
 1
-3
-7
-15
-31
-63
-127
-227
-327
-427
-527
-627
-727
-827
-927
-1027
<STDERR>
[%1] PID 1522 Started
[%1] PID 1522 Done
</STDERR>

lib/test-util.sh:1698: ble/util/conditional-sync 'ble/bin/sleep 10' 'true' 100 timeout=10
--- 1515.exit.expect	2025-03-01 23:11:17.978300237 +0000
+++ 1515.exit.result	2025-03-01 23:11:17.979300245 +0000
@@ -1 +1 @@
-142
+0
<STDERR>
[%1] PID 1527 Started
[%1] PID 1527 Done
</STDERR>

lib/test-util.sh:1713: kill -0 "$pid1"
--- 1515.exit.expect	2025-03-01 23:11:18.123301436 +0000
+++ 1515.exit.result	2025-03-01 23:11:18.124301444 +0000
@@ -1 +1 @@
-1
+0

lib/test-util.sh:1714: kill -0 "$pid2"
--- 1515.exit.expect	2025-03-01 23:11:18.163301767 +0000
+++ 1515.exit.result	2025-03-01 23:11:18.163301767 +0000
@@ -1 +1 @@
-1
+0

lib/test-util.sh:1715: kill -0 "$pid3"
--- 1515.exit.expect	2025-03-01 23:11:18.202302090 +0000
+++ 1515.exit.result	2025-03-01 23:11:18.203302098 +0000
@@ -1 +1 @@
-1
+0

lib/test-util.sh:1740: ble/util/get-pager ret
--- 1569.ret.expect	2025-03-01 23:11:18.465304266 +0000
+++ 1569.ret.result	2025-03-01 23:11:18.466304274 +0000
@@ -1 +1 @@
-less
+pager

lib/test-util.sh:1763: ble/util/buffer.flush
--- 1574.stdout.expect	2025-03-01 23:11:18.549304960 +0000
+++ 1574.stdout.result	2025-03-01 23:11:18.549304960 +0000
@@ -1 +1 @@
-helloworld
+

lib/test-util.sh:1767: ble/util/buffer.flush
--- 1574.stdout.expect	2025-03-01 23:11:18.595305341 +0000
+++ 1574.stdout.result	2025-03-01 23:11:18.596305349 +0000
@@ -1,2 +1 @@
-hello
-world
+

lib/test-util.sh:2016: ble/util/c2s 956; [[ $ret != μ ]]
--- 1587.exit.expect	2025-03-01 23:11:20.108317858 +0000
+++ 1587.exit.result	2025-03-01 23:11:20.108317858 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:2017: ble/util/c2s 12354; [[ $ret != あ ]]
--- 1587.exit.expect	2025-03-01 23:11:20.142318139 +0000
+++ 1587.exit.result	2025-03-01 23:11:20.142318139 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:2047: ble/util/chars2s
--- 1593.ret.expect	2025-03-01 23:11:20.442320621 +0000
+++ 1593.ret.result	2025-03-01 23:11:20.443320629 +0000
@@ -1 +1 @@
-
+12354
<STDERR>
  \\U%08x
        ^
[ printf arg at line 11674 of out/ble.osh ]:1
</STDERR>

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-@c'; ret="${ret[*]}"
--- 1596.ret.expect	2025-03-01 23:11:21.488329309 +0000
+++ 1596.ret.result	2025-03-01 23:11:21.488329309 +0000
@@ -1 +1 @@
-98 0 99
+98 0

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-ac'; ret="${ret[*]}"
--- 1596.ret.expect	2025-03-01 23:11:21.593330218 +0000
+++ 1596.ret.result	2025-03-01 23:11:21.593330218 +0000
@@ -1 +1 @@
-98 1 99
+98 1

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-zc'; ret="${ret[*]}"
--- 1596.ret.expect	2025-03-01 23:11:21.697331119 +0000
+++ 1596.ret.result	2025-03-01 23:11:21.697331119 +0000
@@ -1 +1 @@
-98 26 99
+98 26

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-]c'; ret="${ret[*]}"
--- 1596.ret.expect	2025-03-01 23:11:21.800332011 +0000
+++ 1596.ret.result	2025-03-01 23:11:21.801332020 +0000
@@ -1 +1 @@
-98 29 99
+98 29

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-^c'; ret="${ret[*]}"
--- 1596.ret.expect	2025-03-01 23:11:21.904332912 +0000
+++ 1596.ret.result	2025-03-01 23:11:21.905332921 +0000
@@ -1 +1 @@
-98 30 99
+98 30

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-_c'; ret="${ret[*]}"
--- 1596.ret.expect	2025-03-01 23:11:22.008333814 +0000
+++ 1596.ret.result	2025-03-01 23:11:22.008333814 +0000
@@ -1 +1 @@
-98 31 99
+98 31

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\M-\C-@c'; ret="${ret[*]}"
--- 1596.ret.expect	2025-03-01 23:11:22.113334723 +0000
+++ 1596.ret.result	2025-03-01 23:11:22.114334732 +0000
@@ -1 +1 @@
-98 27 0 99
+98 27 0

 91.3% [section] ble/util: 1129/1236 (107 fail, 0 crash, 8 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